mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/openrdap: new aport
https://www.openrdap.org/ RDAP command line client
This commit is contained in:
parent
113e951b16
commit
e94c6c8364
1 changed files with 37 additions and 0 deletions
37
testing/openrdap/APKBUILD
Normal file
37
testing/openrdap/APKBUILD
Normal 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
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue