# $Id: PKGBUILD 157125 2012-04-24 08:19:51Z bisson $ # Maintainer: Gaetan Bisson # Contributor: mathieui # Contributor: jiribb pkgname=ldns pkgver=1.6.12 pkgrel=2 pkgdesc='Fast DNS library supporting recent RFCs' url='http://www.nlnetlabs.nl/projects/ldns/' license=('custom:BSD') arch=('i686' 'x86_64' 'mips64el') options=('!libtool') depends=('openssl' 'dnssec-anchors') optdepends=('libpcap: ldns-dpa tool') makedepends=('libpcap') source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz" 'Makefile.patch') sha1sums=('1d61df0f666908551d5a62768f77d63e727810aa' '01bce260e9639d9cd26109a689dddf2498e5026a') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../Makefile.patch ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-static=no \ --disable-rpath \ --with-drill \ --with-examples \ make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }