From 58c09e7721915b7ee8b92345f242ab0da6176c06 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Tue, 7 Aug 2012 12:45:33 -0500 Subject: nettle 2.5 --- abs/core/nettle/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ abs/core/nettle/nettle.install | 20 ++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 abs/core/nettle/PKGBUILD create mode 100644 abs/core/nettle/nettle.install diff --git a/abs/core/nettle/PKGBUILD b/abs/core/nettle/PKGBUILD new file mode 100644 index 0000000..2e9f8c0 --- /dev/null +++ b/abs/core/nettle/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 163476 2012-07-12 19:05:48Z andyrtr $ +# Maintainer: Andreas Radke +# Contributor: bender02 at gmx dot com + +pkgname=nettle +pkgver=2.5 +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=('d66882e6ad31a9f651b73d7a1a93bd4c') + +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 +} diff --git a/abs/core/nettle/nettle.install b/abs/core/nettle/nettle.install new file mode 100644 index 0000000..3d19b5f --- /dev/null +++ b/abs/core/nettle/nettle.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(nettle.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} -- cgit v0.12