datazen
LOW
maintainer jinzhongjia
0 votes
scanned 2026-09-03 03:52:21.844053
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: jinzhongjia <mail@nvimer.org>
2
3
pkgname=datazen
4
pkgver=0.1.1
5
pkgrel=1
6
pkgdesc="Lightweight, open-source AI database client"
7
arch=('x86_64')
8
url="https://github.com/flyxl/datazen"
9
license=('GPL-3.0-or-later')
10
depends=(
11
'cairo'
12
'dbus'
13
'gdk-pixbuf2'
14
'glib2'
15
'glibc'
16
'gtk3'
17
'hicolor-icon-theme'
18
'libayatana-appindicator'
19
'libgcc'
20
'libsoup3'
21
'webkit2gtk-4.1'
22
)
23
makedepends=(
24
'cargo'
25
'git'
26
'nodejs'
27
'pkgconf'
28
'pnpm'
29
'rust'
30
)
31
provides=('datazen')
32
conflicts=('datazen-bin')
33
options=('!lto' '!debug')
34
source=(
35
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
36
'system-prompts-path.patch'
37
)
38
sha256sums=(
39
'29dd6ae03a9f82288c57efa376d1793f6e8e84b9f9e1e504f43f53e9b8a4a6ac'
40
'3df1db7493efa2f9df25ae413a7d44b9cd0655ddbb94b987e6e2d501c29d1ece'
41
)
42
43
prepare() {
44
cd "${pkgname}-${pkgver}"
45
patch -Np1 -i "${srcdir}/system-prompts-path.patch"
46
47
# Keep dependency caches inside the build tree.
48
export CARGO_HOME="${srcdir}/.cargo"
49
export npm_config_cache="${srcdir}/.npm-cache"
50
pnpm config --location project set store-dir "${srcdir}/.pnpm-store"
51
52
pnpm install --frozen-lockfile
53
# v0.1.1's Cargo.lock is not synchronized with its workspace manifests.
54
# Upstream's release build refreshes it as well, so --locked cannot be used.
55
cargo fetch --target "${CARCH}-unknown-linux-gnu"
56
}
57
58
build() {
59
cd "${pkgname}-${pkgver}"
60
61
export CARGO_HOME="${srcdir}/.cargo"
62
export RUSTUP_TOOLCHAIN=stable
63
export npm_config_cache="${srcdir}/.npm-cache"
64
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix=${srcdir}/${pkgname}-${pkgver}=/build/${pkgname} --remap-path-prefix=${srcdir}/.cargo/registry=/cargo-registry --remap-path-prefix=${srcdir}/.cargo/git=/cargo-git"
65
66
# Match the standard upstream release: PostgreSQL, MySQL, SQLite and Redis.
67
node scripts/with-driver-inject.mjs --drivers=basic -- \
68
pnpm exec tauri build --no-bundle
69
}
70
71
package() {
72
cd "${pkgname}-${pkgver}"
73
74
install -Dm755 "target/release/datazen" "${pkgdir}/usr/bin/datazen"
75
76
install -d "${pkgdir}/usr/lib/DataZen/prompts"
77
cp -a src-tauri/resources/prompts/. "${pkgdir}/usr/lib/DataZen/prompts/"
78
79
local _icondir="${pkgdir}/usr/share/icons/hicolor"
80
install -Dm644 "src-tauri/icons/32x32.png" \
81
"${_icondir}/32x32/apps/datazen.png"
82
install -Dm644 "src-tauri/icons/128x128.png" \
83
"${_icondir}/128x128/apps/datazen.png"
84
install -Dm644 "src-tauri/icons/128x128@2x.png" \
85
"${_icondir}/256x256@2/apps/datazen.png"
86
install -Dm644 "src-tauri/icons/icon.png" \
87
"${_icondir}/512x512/apps/datazen.png"
88
89
install -Dm644 /dev/stdin \
90
"${pkgdir}/usr/share/applications/DataZen.desktop" <<'EOF'
91
[Desktop Entry]
92
Type=Application
93
Name=DataZen
94
Comment=Lightweight, open-source AI database client
95
Exec=datazen
96
Icon=datazen
97
Terminal=false
98
Categories=Development;Database;
99
StartupWMClass=datazen
100
EOF
101
102
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
103
}
104
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-03 03:52:21 | Low | 1 |