# $Id: PKGBUILD 175512 2013-01-17 18:26:40Z andyrtr $ # Maintainer: Andreas Radke # Contributor: bender02 at gmx dot com pkgname=nettle pkgver=2.6 pkgrel=1 pkgdesc="A low-level cryptographic library" arch=('i686' 'x86_64' 'mips64el') url="http://www.lysator.liu.se/~nisse/nettle/" license=('GPL2') install=$pkgname.install depends=('gmp') source=(ftp://ftp.lysator.liu.se/pub/security/lsh/$pkgname-$pkgver.tar.gz) md5sums=('02f76b668855c4da67186c04cd3a222f') build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr --libdir=/usr/lib \ --enable-shared make } check() { cd "$srcdir/$pkgname-$pkgver" make -k check } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install # remove static libs #--disable-static - build would break (since nettle 2.6) - and had no effect before rm -f ${pkgdir}/usr/lib/{libhogweed,libnettle}.a }