# Maintainer: shulhan pkgname=rescached-git pkgver=2.1.1.r0.ga5ccf7d pkgrel=1 pkgdesc="Resolver/DNS cache daemon" arch=('i686' 'x86_64' 'armv7h') url="https://github.com/shuLhan/rescached-go" license=('custom:BSD') depends=('bash') provides=('rescached') conflicts=('bind' 'nsd' 'pdnsd' 'powerdns' 'unbound' 'dnsmasq') makedepends=('git' 'go-pie>=1.11' 'asciidoctor') source=( "$pkgname::git+https://github.com/shuLhan/rescached-go.git" ) sha1sums=( 'SKIP' ) backup=( 'etc/rescached/rescached.cfg' 'etc/rescached/hosts.d/hosts.block' ) pkgver() { cd "$pkgname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$pkgname" echo ">>" echo ">> cleaning ..." echo ">>" make clean echo ">>" echo ">> make ..." echo ">>" unset GOROOT make || return 1 } package() { cd "$pkgname" make PREFIX="$pkgdir" install install -Dm644 $srcdir/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }