zg
LOW
maintainer aminvakil
0 votes
scanned 2026-09-03 19:54:21.739188
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: Amin Vakil <info AT aminvakil DOT com>
2
3
_pkgname=zvec-grep
4
pkgname=zg
5
pkgver=0.2.0
6
pkgrel=3
7
pkgdesc="Local-first search across your workspace, built for humans and AI agents"
8
arch=('x86_64' 'aarch64')
9
url="https://github.com/zvec-ai/zvec-grep"
10
license=('Apache-2.0')
11
depends=('nodejs>=22')
12
makedepends=('npm')
13
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
14
sha256sums=('5162be1998ece6c4f2177e22643cc14abfa0a1077522cb764dfe49ceb45e9dc1')
15
16
build() {
17
cd "${_pkgname}-${pkgver}"
18
19
npm ci --cache "${srcdir}/npm-cache" --ignore-scripts --no-audit --no-fund
20
npm run build
21
npm prune --cache "${srcdir}/npm-cache" \
22
--omit=dev --ignore-scripts --no-audit --no-fund
23
}
24
25
package() {
26
cd "${_pkgname}-${pkgver}"
27
28
local mod_dir="/usr/lib/node_modules/${pkgname}"
29
30
install -dm755 "$pkgdir/$mod_dir/node_modules"
31
install -dm755 "$pkgdir/usr/bin" \
32
"$pkgdir/usr/share/doc/${pkgname}"
33
34
cp -ap dist "$pkgdir/$mod_dir"
35
cp -a node_modules/. "$pkgdir/$mod_dir/node_modules/"
36
install -Dm644 package.json "$pkgdir/$mod_dir/package.json"
37
ln -s "$mod_dir/dist/cli/index.js" "$pkgdir/usr/bin/${pkgname}"
38
39
cp -r docs/* "$pkgdir/usr/share/doc/$pkgname/"
40
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
41
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42
}
43
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-03 19:54:21 | Low | 1 |