pig

LOW
maintainer nathanchere 0 votes scanned 2026-10-19 09:25:06.082550
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: Nathan Chere <aur@nathanchere.com.au>
2pkgname=pig
3appname=pig
4pkgver=0.4.1
5pkgrel=1
6pkgdesc="Pi coding agent ported to Go"
7arch=('x86_64' 'aarch64')
8url="https://github.com/MichaelKinsy/PiG"
9license=('MIT')
10depends=('bash' 'ca-certificates' 'fd' 'glibc' 'ripgrep')
11makedepends=('go>=1.27.1')
12optdepends=(
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)
23source=("${appname}-${pkgver}-source.tar.gz::${url}/releases/download/v${pkgver}/${appname}-${pkgver}-source.tar.gz")
24sha256sums=('d2c7bcc58baa50faf2579fcf0d04b6679eece55385c0fc7618cd2ad841aaa733')
25options=('!strip' '!emptydirs')
26
27prepare() {
28 cd "$srcdir/$appname-$pkgver"
29 GOWORK=off go mod download
30}
31
32build() {
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
43check() {
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
50package() {
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)SeverityRules
2026-10-19 09:25:06 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