zdns-git: auto updated to 1.0.0.364.84665d1-3
This commit is contained in:
parent
818fb36b91
commit
3c9abb953b
|
@ -3,7 +3,7 @@
|
||||||
pkgname=zdns-git
|
pkgname=zdns-git
|
||||||
pkgdesc='A command-line utility that provides high-speed DNS lookups.'
|
pkgdesc='A command-line utility that provides high-speed DNS lookups.'
|
||||||
pkgver=1.0.0.364.84665d1
|
pkgver=1.0.0.364.84665d1
|
||||||
pkgrel=1
|
pkgrel=3
|
||||||
url='https://github.com/zmap/zdns'
|
url='https://github.com/zmap/zdns'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
|
@ -16,16 +16,33 @@ sha512sums=('SKIP')
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
printf "%s.%s.%s" \
|
printf "%s.%s.%s" \
|
||||||
"$(git tag -l|cut -d- -f1|sort -V -r|head -n1|cut -dv -f2)" \
|
"$(git tag -l | cut -d- -f1 | sort -V -r | head -n1 | cut -dv -f2)" \
|
||||||
"$(git rev-list --count HEAD)" \
|
"$(git rev-list --count HEAD)" \
|
||||||
"$(git rev-parse --short HEAD)"
|
"$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
make
|
export CGO_LDFLAGS="${LDFLAGS}"
|
||||||
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
|
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||||
|
go build .
|
||||||
|
|
||||||
|
for i in zsh bash fish; do
|
||||||
|
./zdns completion $i >zdns.$i
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -D "${pkgname}/zdns" "${pkgdir}/usr/bin/zdns"
|
cd ${pkgname}
|
||||||
|
|
||||||
|
install -Dm 755 zdns "${pkgdir}/usr/bin/zdns"
|
||||||
|
|
||||||
|
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/zdns/LICENSE"
|
||||||
|
|
||||||
|
install -Dm 644 zdns.zsh "${pkgdir}/usr/share/zsh/site-functions/_zdns"
|
||||||
|
install -Dm 644 zdns.bash "${pkgdir}/usr/share/bash-completion/completions/zdns"
|
||||||
|
install -Dm 644 zdns.fish "${pkgdir}/usr/share/fish/vendor_completions.d/zdns.fish"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue