updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / lib32-nettle / PKGBUILD
blob0db7d0d695f98b48adde98681ccae459a9d75bcb
1 # $Id: PKGBUILD 58142 2011-11-06 22:21:10Z bluewind $
2 # Maintainer: Christoph Vigano <mail@cvigano.de>
3 # Contributor: Florian Pritz <flo@xssn.at>
4 # Contributor: Andreas Radke <andyrtr@archlinux.org>
5 # Contributor: bender02 at gmx dot com
7 _pkgbasename=nettle
8 pkgname=lib32-$_pkgbasename
9 pkgver=2.4
10 pkgrel=2
11 pkgdesc="A low-level cryptographic library (32-bit)"
12 arch=('i686' 'x86_64')
13 url="http://www.lysator.liu.se/~nisse/nettle/"
14 license=('GPL2')
15 depends=('lib32-gmp')
16 makedepends=(gcc-multilib)
17 source=(ftp://ftp.gnu.org/gnu/nettle/$_pkgbasename-$pkgver.tar.gz)
18 md5sums=(''450be8c4886d46c09f49f568ad6fa013'')
20 build() {
21   cd "$srcdir/$_pkgbasename-$pkgver"
23   export CC="gcc -m32"
24   export CXX="g++ -m32"
25   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27   ./configure --prefix=/usr --libdir=/usr/lib32 \
28         --enable-shared \
29         --disable-static # <-- seems not working now
30   make
33 check() {
34   cd "$srcdir/$_pkgbasename-$pkgver"
35   make -k check
38 package() {
39   cd "$srcdir/$_pkgbasename-$pkgver"
40   make DESTDIR="$pkgdir/" install
42   find $pkgdir
43   
44   # remove static libs
45   rm -f ${pkgdir}/usr/lib32/{libhogweed,libnettle}.a
47   rm -rf "${pkgdir}"/usr/{include,share,bin}