# Contributor: David Huffman # Maintainer: David Huffman pkgname=gosu pkgver=1.16 pkgrel=2 pkgdesc="Simple Go-based setuid+setgid+setgroups+exec" url="https://github.com/tianon/gosu" arch="all" license="Apache-2.0" makedepends="coreutils go" source="$pkgname-$pkgver.tar.gz::https://github.com/tianon/gosu/archive/refs/tags/$pkgver.tar.gz" options="!check" # require docker to run tests export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v } package() { install -Dm755 gosu -t "$pkgdir"/usr/bin/ } sha512sums=" 82f53f33418828e26045434c191d9e8e8ef92404aeed962745c034514f4249e3f930fad56d429c8c6843c3fe5daea11028205fee70c3a98221a0c896599c6ec9 gosu-1.16.tar.gz "