aports/testing/certigo/APKBUILD
2025-03-16 14:15:03 +01:00

35 lines
1 KiB
Text

# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=certigo
pkgver=1.16.0
pkgrel=21
pkgdesc="Utility to examine and validate certificates in a variety of formats"
url="https://github.com/square/certigo"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/square/certigo/archive/v$pkgver/v$pkgver.tar.gz
update-go-deps.patch
"
options="chmod-clean"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -trimpath
}
check() {
go test -v ./...
}
package() {
install -Dm755 certigo "$pkgdir"/usr/bin/certigo
}
sha512sums="
036f05004d242714ad50d4e8ce2a55d922d1bcb248a3bfcc2a153ca7dfbb12a521ed18bb269a6aebb9754fc69198664544da7fb0bb3b438b70373e2e7bd2e14a certigo-1.16.0.tar.gz
17f992329d4af675fea08004b148c8115bd76c16e2b33854710c01d785430271841f07105dc13cabe05ee378a453b84c07a18f49f7fa55040ae922506b009d16 update-go-deps.patch
"