# $Id$ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: mathieui <mathieui@mathieui.net> # Contributor: jiribb <jiribb@gmail.com> pkgname=ldns pkgver=1.6.17 pkgrel=3 pkgdesc='Fast DNS library supporting recent RFCs' url='http://www.nlnetlabs.nl/projects/ldns/' license=('custom:BSD') arch=('i686' 'x86_64') depends=('openssl' 'dnssec-anchors') optdepends=('libpcap: ldns-dpa tool') makedepends=('libpcap') source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz" 'perl-recent.patch') sha1sums=('4218897b3c002aadfc7280b3f40cda829e05c9a4' '026b276a360d29b3bd3690293a27178262a0b3dc') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../perl-recent.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-rpath \ --with-drill \ --with-examples \ --with-trust-anchor=/etc/trusted-key.key \ make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }