summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e23e1449d4b9c63c141950f72f3e186d1deae2f (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
38
39
40
41
42
43
44
45
46
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=ldns-git
pkgver=1.8.1.r11.g552a32db
pkgrel=1
pkgdesc="C library for DNS programming"
arch=('i686' 'x86_64')
url="https://www.nlnetlabs.nl/projects/ldns/about/"
license=('BSD')
depends=('glibc' 'dnssec-anchors' 'openssl')
optdepends=('libpcap: ldns-dpa tool')
makedepends=('git' 'libpcap')
provides=('ldns')
conflicts=('ldns')
options=('staticlibs')
source=("git+https://github.com/NLnetLabs/ldns.git")
sha256sums=('SKIP')


pkgver() {
  cd "ldns"

  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "ldns"

  libtoolize --copy --install
  autoreconf -fi
  ./configure \
    --prefix="/usr" \
    --sysconfdir="/etc" \
    --localstatedir="/var" \
    --with-drill \
    --with-examples \
    --with-trust-anchor="/etc/trusted-key.key"
  make
}

package() {
  cd "ldns"

  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/ldns"
}