1 # Maintainer: Florian Pritz <bluewind@xinu.at>
2 # Contributor: Christoph Vigano <mail@cvigano.de>
3 # Contributor: Andreas Radke <andyrtr@archlinux.org>
4 # Contributor: bender02 at gmx dot com
7 pkgname=lib32-$_pkgbasename
10 pkgdesc="A low-level cryptographic library (32-bit)"
12 url="https://www.lysator.liu.se/~nisse/nettle/"
14 depends=('lib32-gmp' $_pkgbasename)
15 makedepends=(gcc-multilib)
16 provides=('libnettle.so' 'libhogweed.so')
17 source=(https://ftp.gnu.org/gnu/nettle/$_pkgbasename-$pkgver.tar.gz{,.sig})
18 sha256sums=('364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe'
20 validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller <nisse@lysator.liu.se>
23 cd $_pkgbasename-$pkgver
27 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
29 ./configure --prefix=/usr --libdir=/usr/lib32 \
30 --enable-shared --with-include-path=/usr/lib32/gmp
35 cd $_pkgbasename-$pkgver
40 cd $_pkgbasename-$pkgver
41 make DESTDIR="$pkgdir/" install
42 rm -rf "${pkgdir}"/usr/{include,share,bin}