summaryrefslogtreecommitdiff
path: root/testing/nettle/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nettle/PKGBUILD')
-rw-r--r--testing/nettle/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/nettle/PKGBUILD b/testing/nettle/PKGBUILD
new file mode 100644
index 000000000..085e98f5d
--- /dev/null
+++ b/testing/nettle/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 130897 2011-07-08 16:53:06Z andyrtr $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# Contributor: bender02 at gmx dot com
+
+pkgname=nettle
+pkgver=2.1
+pkgrel=1
+pkgdesc="A low-level cryptographic library"
+arch=('i686' 'x86_64')
+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=('2bfaf16234a5d8deb96cd23f53a682bb')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --libdir=/usr/lib \
+ --enable-shared \
+ --disable-static # <-- seems not working now
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # remove static libs
+ rm -f ${pkgdir}/usr/lib/{libhogweed,libnettle}.a
+}