summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35ca9df53d26e0a6c8dad85e209f17dd0961bef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Petr Spacek <pspacek at isc dot org>

pkgname=dnsperf-git
pkgver=2.8.0.r6.7afc0d3
_pkgsubver=1
pkgrel=1
pkgdesc="Tools that measure performance of authoritative Domain Name services"
arch=('x86_64')
url="https://www.dns-oarc.net/tools/dnsperf"
license=('GPL')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
depends=('ldns' 'libck' 'libnghttp2')
source=("git+https://github.com/DNS-OARC/dnsperf.git")
sha512sums=('SKIP')

prepare() {
  cd "${srcdir}/dnsperf"
}

pkgver() {
  cd "${srcdir}/dnsperf"
  printf "%s" "$(git describe --match 'v*' --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "${srcdir}/dnsperf"
  ./autogen.sh
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}/dnsperf"
  make DESTDIR="${pkgdir}" install
}