dux-gop-git

LOW
maintainer bbedward 0 votes scanned 2026-10-28 13:50:29.593976
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# Maintainer: Avenge Media <avengemediallc at gmail dot com>
2# Contributor: Caleb Maclennan <caleb@alerque.com>
3
4pkgname=dux-gop-git
5_pkgname=dux-gop
6_binname=dgop
7pkgver=2.0.0.r1.gc1dbfaf
8pkgrel=1
9pkgdesc='System monitoring CLI + REST API (git)'
10arch=(x86_64 aarch64 armv7h)
11url="https://github.com/duxlabs-dev/$_pkgname"
12license=(MIT)
13depends=(glibc)
14makedepends=(git
15 go)
16provides=("$_binname=$pkgver" "$_pkgname=$pkgver")
17conflicts=("$_binname" "$_pkgname" dgop-git)
18replaces=(dgop-git)
19source=("$_pkgname::git+$url.git")
20sha256sums=('SKIP')
21
22pkgver() {
23 cd "$_pkgname"
24 git describe --long --tags --abbrev=7 --match="v*" HEAD |
25 sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
26}
27
28prepare() {
29 mkdir -p gomodcache
30}
31
32build() {
33 cd "$_pkgname"
34 export GOMODCACHE="$srcdir/gomodcache"
35 export CGO_CPPFLAGS="$CPPFLAGS"
36 export CGO_CFLAGS="$CFLAGS"
37 export CGO_CXXFLAGS="$CXXFLAGS"
38 export CGO_LDFLAGS="$LDFLAGS"
39 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
40 go build -o "$_binname" "./cmd/$_binname"
41}
42
43check() {
44 cd "$_pkgname"
45 export GOMODCACHE="$srcdir/gomodcache"
46 export CGO_CPPFLAGS="$CPPFLAGS"
47 export CGO_CFLAGS="$CFLAGS"
48 export CGO_CXXFLAGS="$CXXFLAGS"
49 export CGO_LDFLAGS="$LDFLAGS"
50 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
51 go test ./... || true
52}
53
54package() {
55 cd "$_pkgname"
56 install -Dm0755 -t "$pkgdir/usr/bin/" "$_binname"
57 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
58}
59

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 13:50:29 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