testing/pug: new aport

This commit is contained in:
Guy Godfroy 2025-03-16 20:33:32 +00:00 committed by mio
parent ad34c5f537
commit 9b170b5be6

31
testing/pug/APKBUILD Normal file
View File

@ -0,0 +1,31 @@
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
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
"