2024-03-12 19:09:38 +01:00

38 lines
1.1 KiB
Plaintext

# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=birdwatcher
pkgver=2.2.5
pkgrel=1
pkgdesc="A JSON API for BIRD"
url="https://github.com/alice-lg/birdwatcher"
arch="all"
license="BSD-3-Clause"
makedepends="go"
options="net"
source="birdwatcher-$pkgver.tar.gz::https://github.com/alice-lg/birdwatcher/archive/refs/tags/$pkgver.tar.gz
birdwatcher.initd
"
subpackages="$pkgname-openrc"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -o birdwatcher
}
check() {
go test -v
}
package() {
install -Dm755 birdwatcher "$pkgdir"/usr/bin/birdwatcher
install -Dm644 etc/birdwatcher/birdwatcher.conf "$pkgdir"/etc/birdwatcher/birdwatcher.conf
install -Dm755 "$srcdir"/birdwatcher.initd "$pkgdir"/etc/init.d/birdwatcher
}
sha512sums="
1e0292635b5eedb987ed0da2f077f94730039274bc194c5686246c83fbd329f59809ffb55d32fe1810fd06d69f86a648daf7facecb93aba572b6e12a1cc4440e birdwatcher-2.2.5.tar.gz
dee2578304990ce464833c099accf99219853811af86fc6cbb39886441f3f3e7104076ff8cc9d507cb348000c2db9de6223428784a36605ba63e05807cdcfec9 birdwatcher.initd
"