# Contributor: 6543 <6543@obermui.de> # Maintainer: 6543 <6543@obermui.de> pkgname=nodeinfo pkgver=0.0.1 pkgrel=0 pkgdesc="A command line tool to query nodeinfo based on a given domain" url="https://codeberg.org/thefederationinfo/nodeinfo-go" license="MIT" arch="all" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://codeberg.org/thefederationinfo/nodeinfo-go/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname" options="chmod-clean !check" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export CGO_ENABLED=0 build() { cd $pkgname-go/cli go build -o $pkgname . } package() { install -Dm755 $builddir-go/cli/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums=" 17fd0fc6bb4e1001e5e94902dd4af4d893c61da5ecb84eca3c308a3a855c8ae04c684870ceedfba8b4be2e87bca0acfabf5af3aa6c5b57cbb7eda6ad49379ef3 nodeinfo-0.0.1.tar.gz "