snav
LOW
maintainer Giovani_Geek
0 votes
scanned 2026-10-06 08:02:16.298752
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
4
pkgname=snav
5
pkgver=0.7.4
6
pkgrel=1
7
pkgdesc="Fast terminal code navigator with fuzzy search, syntax-highlighted preview and editor integration, powered by ripgrep"
8
arch=('x86_64' 'aarch64')
9
url="https://github.com/oomathias/snav"
10
license=('MIT')
11
depends=('glibc' 'ripgrep')
12
makedepends=('go>=1.26' 'gcc')
13
checkdepends=('ripgrep')
14
options=('!lto')
15
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
16
sha256sums=('36e4c20e88d2694911d5c2497b11789d048c5d1129b974cd352ed8fdebe97d97')
17
18
prepare() {
19
cd "$pkgname-$pkgver/src"
20
go mod download
21
}
22
23
build() {
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
33
check() {
34
cd "$pkgname-$pkgver/src"
35
go test ./...
36
}
37
38
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-06 08:02:16 | Low | 1 |