1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/openrdap: new aport

https://www.openrdap.org/ RDAP command line client
This commit is contained in:
Alex Denes 2025-06-11 07:22:44 +00:00 committed by mio
parent 113e951b16
commit e94c6c8364

37
testing/openrdap/APKBUILD Normal file
View file

@ -0,0 +1,37 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=openrdap
pkgver=0.9.1
pkgrel=0
pkgdesc="RDAP command line client"
url="https://www.openrdap.org/"
arch="all"
license="MIT"
makedepends="
go>=1.19
"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/openrdap/rdap/archive/refs/tags/v$pkgver.tar.gz
"
options="net"
builddir="$srcdir/rdap-$pkgver"
build() {
mkdir build
go build -o build/rdap ./cmd/rdap/
}
check() {
# test uses runtime.Caller path to find test data, failing if -trimpath is used for building the tests
env GOFLAGS="$(echo "$GOFLAGS" | sed -e 's/-trimpath //')" go test ./...
}
package() {
install -Dm755 build/rdap "$pkgdir"/usr/bin/rdap
install -Dm444 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="
3111a8e270d10b482b0d8f1ee9d002cad6800f64637133db15e3c75193b5ba7032ca085e3a994853f21f48a49c36d0ef4e1ce1a747a490f3e1aa8961c06a5543 openrdap-0.9.1.tar.gz
"