dux-gop-git
LOW
maintainer bbedward
0 votes
scanned 2026-10-28 13:50:29.593976
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
4
pkgname=dux-gop-git
5
_pkgname=dux-gop
6
_binname=dgop
7
pkgver=2.0.0.r1.gc1dbfaf
8
pkgrel=1
9
pkgdesc='System monitoring CLI + REST API (git)'
10
arch=(x86_64 aarch64 armv7h)
11
url="https://github.com/duxlabs-dev/$_pkgname"
12
license=(MIT)
13
depends=(glibc)
14
makedepends=(git
15
go)
16
provides=("$_binname=$pkgver" "$_pkgname=$pkgver")
17
conflicts=("$_binname" "$_pkgname" dgop-git)
18
replaces=(dgop-git)
19
source=("$_pkgname::git+$url.git")
20
sha256sums=('SKIP')
21
22
pkgver() {
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
28
prepare() {
29
mkdir -p gomodcache
30
}
31
32
build() {
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
43
check() {
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
54
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-28 13:50:29 | Low | 1 |