zap
LOW
maintainer Cube1ber
0 votes
scanned 2026-10-07 20:06:42.279410
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: Cube1ber (https://github.com/cube-one-ber)
2
pkgname=zap
3
pkgver=0.1.0.r9.g2a72f84c64b3
4
pkgrel=1
5
pkgdesc='Native Zig AUR helper with libalpm transactions and systemd run0'
6
arch=('x86_64')
7
url='https://github.com/cube-one-ber/zap'
8
license=('GPL-3.0-or-later')
9
depends=('pacman>=7.0' 'libalpm.so' 'curl' 'git' 'bubblewrap' 'systemd>=256' 'base-devel')
10
optdepends=('polkit: authentication for systemd run0')
11
makedepends=('pkgconf')
12
# An external, verified Zig 0.15.2 compiler may be supplied for local builds.
13
if [[ -z ${ZIG:-} ]]; then
14
makedepends+=('zig0.15')
15
fi
16
conflicts=('zap-git' 'zap-bin')
17
source=("zap-$pkgver.tar.gz::$url/releases/download/v$pkgver/zap-source.tar.gz")
18
sha256sums=('56b97e96f59906397b8362ea060a005966603e3858928274b2a3a601473363e9')
19
20
build() {
21
cd "$srcdir/zap"
22
local _compiler=${ZIG:-/usr/bin/zig-0.15}
23
if [[ $("$_compiler" version) != 0.15.2 ]]; then
24
error 'zap requires Zig 0.15.2; use zig0.15 or set ZIG to that compiler'
25
return 1
26
fi
27
"$_compiler" build -Doptimize=ReleaseSafe
28
}
29
30
check() {
31
cd "$srcdir/zap"
32
"${ZIG:-/usr/bin/zig-0.15}" build test
33
}
34
35
package() {
36
cd "$srcdir/zap"
37
install -Dm755 zig-out/bin/zap "$pkgdir/usr/bin/zap"
38
install -Dm644 packaging/zap.1 "$pkgdir/usr/share/man/man1/zap.1"
39
install -Dm644 packaging/completions/zap.bash "$pkgdir/usr/share/bash-completion/completions/zap"
40
install -Dm644 packaging/completions/_zap "$pkgdir/usr/share/zsh/site-functions/_zap"
41
install -Dm644 packaging/completions/zap.fish "$pkgdir/usr/share/fish/vendor_completions.d/zap.fish"
42
install -Dm644 README.md "$pkgdir/usr/share/doc/zap/README.md"
43
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/zap/LICENSE"
44
}
45
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-07 20:06:42 | Low | 1 |