pig
LOW
maintainer nathanchere
0 votes
scanned 2026-10-19 09:25:06.082550
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: Nathan Chere <aur@nathanchere.com.au>
2
pkgname=pig
3
appname=pig
4
pkgver=0.4.1
5
pkgrel=1
6
pkgdesc="Pi coding agent ported to Go"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/MichaelKinsy/PiG"
9
license=('MIT')
10
depends=('bash' 'ca-certificates' 'fd' 'glibc' 'ripgrep')
11
makedepends=('go>=1.27.1')
12
optdepends=(
13
'git: Git package sources and repository status'
14
'go: Go extensions and native Piglet builds'
15
'nodejs>=22.13.0: JavaScript and TypeScript extensions'
16
'npm: npm package sources'
17
'python: Python extensions'
18
'rust: Rust extensions'
19
'wl-clipboard: clipboard support on Wayland'
20
'xclip: clipboard support on X11'
21
'xdg-utils: open browser links'
22
)
23
source=("${appname}-${pkgver}-source.tar.gz::${url}/releases/download/v${pkgver}/${appname}-${pkgver}-source.tar.gz")
24
sha256sums=('d2c7bcc58baa50faf2579fcf0d04b6679eece55385c0fc7618cd2ad841aaa733')
25
options=('!strip' '!emptydirs')
26
27
prepare() {
28
cd "$srcdir/$appname-$pkgver"
29
GOWORK=off go mod download
30
}
31
32
build() {
33
cd "$srcdir/$appname-$pkgver"
34
export GOWORK=off
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 -mod=readonly -modcacherw"
40
go build -buildvcs=false -ldflags="-linkmode=external -X main.Build=v${pkgver}" -o bin/pig ./cmd/pig
41
}
42
43
check() {
44
cd "$srcdir/$appname-$pkgver"
45
# The full upstream suite requires its pinned Pi comparator and SDK toolchains.
46
[[ "$(bin/pig --version)" == "$pkgver+"* ]]
47
bin/pig --help > /dev/null
48
}
49
50
package() {
51
cd "$srcdir/$appname-$pkgver"
52
install -Dm755 bin/pig "$pkgdir/usr/bin/pig"
53
install -Dm644 LICENSE NOTICE THIRD_PARTY_NOTICES.md -t "$pkgdir/usr/share/licenses/$pkgname"
54
install -Dm644 LICENSES/* -t "$pkgdir/usr/share/licenses/$pkgname/LICENSES"
55
}
56
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-19 09:25:06 | Low | 1 |