diff --git a/testing/pug/APKBUILD b/testing/pug/APKBUILD new file mode 100644 index 00000000000..afebf01a047 --- /dev/null +++ b/testing/pug/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Guy Godfroy +# Maintainer: Guy Godfroy +pkgname=pug +pkgver=0.6.2 +pkgrel=0 +pkgdesc="TUI for terraform" +url="https://github.com/leg100/pug" +arch="all" +license="MPL-2.0" +makedepends="go" +checkdepends="bash" +source="$pkgname-$pkgver.tar.gz::https://github.com/leg100/pug/archive/refs/tags/v$pkgver.tar.gz" +options="net" + +build() { + local ldflags="-s -w -X 'github.com/leg100/pug/internal.Version=$pkgver'" + go build -ldflags "$ldflags" -v -o build/ ./... +} + +check() { + # For some reason TestTask_cancel runs for ages and reach timeout + go test -skip TestTask_cancel ./... +} + +package() { + install -m755 -D build/pug "$pkgdir"/usr/bin/pug +} + +sha512sums=" +ff1d7ac5f451d9fcb809795ce2e5634c2fb94b15a011029a7dba636612a3d6f1f60d2f45085e50e85b8ed419ca07d161cc820a7180ee22fbe798b07d26852be9 pug-0.6.2.tar.gz +"