snav

LOW
maintainer Giovani_Geek 0 votes scanned 2026-10-06 08:02:16.298752
View on AUR
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# shellcheck disable=SC2034,SC2154,SC2164
2# Maintainer: Energetix/Dark Nebula <https://github.com/Jobanny-Friki>
3
4pkgname=snav
5pkgver=0.7.4
6pkgrel=1
7pkgdesc="Fast terminal code navigator with fuzzy search, syntax-highlighted preview and editor integration, powered by ripgrep"
8arch=('x86_64' 'aarch64')
9url="https://github.com/oomathias/snav"
10license=('MIT')
11depends=('glibc' 'ripgrep')
12makedepends=('go>=1.26' 'gcc')
13checkdepends=('ripgrep')
14options=('!lto')
15source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
16sha256sums=('36e4c20e88d2694911d5c2497b11789d048c5d1129b974cd352ed8fdebe97d97')
17
18prepare() {
19 cd "$pkgname-$pkgver/src"
20 go mod download
21}
22
23build() {
24 cd "$pkgname-$pkgver/src"
25 export CGO_CPPFLAGS="${CPPFLAGS}"
26 export CGO_CFLAGS="${CFLAGS}"
27 export CGO_CXXFLAGS="${CXXFLAGS}"
28 export CGO_LDFLAGS="${LDFLAGS}"
29 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
30 go build -o "$srcdir/$pkgname-build" .
31}
32
33check() {
34 cd "$pkgname-$pkgver/src"
35 go test ./...
36}
37
38package() {
39 install -Dm755 "$srcdir/$pkgname-build" "$pkgdir/usr/bin/$pkgname"
40 cd "$pkgname-$pkgver"
41 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
42 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
43 install -Dm644 THIRD_PARTY_LICENSES.md "$pkgdir/usr/share/licenses/$pkgname/THIRD_PARTY_LICENSES.md"
44}
45

Scan history

Scanned at (UTC)SeverityRules
2026-10-06 08:02:16 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion