# Contributor: Justin Berthault # Maintainer: Justin Berthault pkgname=blocky pkgver=0.21 pkgrel=1 pkgdesc="DNS proxy as ad-blocker for local network" url="https://github.com/0xERR0R/blocky" license="Apache-2.0" arch="all" options="net" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/0xERR0R/blocky/archive/v$pkgver.tar.gz" # fail with new go for some reason, even with tzdata/goroot options="!check" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make VERSION=$pkgver build } check() { make test } package() { install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname" # blocky will not start if its log directory is missing mkdir -p "$pkgdir"/var/log/blocky } sha512sums=" 0decd8cd6ddb1168c474da465c3a37e7882bdbf39e942be6ae454e033beefcc543680dd00c9967af24355abd60ae81eb7f32ba7b8703ddd459c17ab90904f00b blocky-0.21.tar.gz "