zdns-git: auto updated to 1.0.0.357.ac6c7f3-1
This commit is contained in:
parent
8e8c5d61dc
commit
f8ec481068
31
repo/zdns-git/PKGBUILD
Normal file
31
repo/zdns-git/PKGBUILD
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Maintainer: bgme <i@bgme.me>
|
||||||
|
|
||||||
|
pkgname=zdns-git
|
||||||
|
pkgdesc='A command-line utility that provides high-speed DNS lookups.'
|
||||||
|
pkgver=1.0.0.357.ac6c7f3
|
||||||
|
pkgrel=1
|
||||||
|
url='https://github.com/zmap/zdns'
|
||||||
|
arch=('x86_64')
|
||||||
|
license=('Apache')
|
||||||
|
depends=('glibc')
|
||||||
|
makedepends=('git' 'go')
|
||||||
|
provides=('zdns')
|
||||||
|
source=(${pkgname}::git+https://github.com/zmap/zdns.git)
|
||||||
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd ${pkgname}
|
||||||
|
printf "%s.%s.%s" \
|
||||||
|
"$(git tag -l|cut -d- -f1|sort -V -r|head -n1|cut -dv -f2)" \
|
||||||
|
"$(git rev-list --count HEAD)" \
|
||||||
|
"$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${pkgname}
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -D "${pkgname}/zdns" "${pkgdir}/usr/bin/zdns"
|
||||||
|
}
|
Loading…
Reference in a new issue