archrelease: copy trunk to community-any
[ArchLinux/community.git] / lib32-nettle / trunk / PKGBUILD
blob28d194199d0d2c75d1d1d350f27481a355de90b1
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
6 _pkgbasename=nettle
7 pkgname=lib32-$_pkgbasename
8 pkgver=3.8.1
9 pkgrel=1
10 pkgdesc="A low-level cryptographic library (32-bit)"
11 arch=('x86_64')
12 url="https://www.lysator.liu.se/~nisse/nettle/"
13 license=('GPL2')
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'
19             'SKIP')
20 validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller <nisse@lysator.liu.se>
22 build() {
23   cd $_pkgbasename-$pkgver
25   export CC="gcc -m32"
26   export CXX="g++ -m32"
27   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
29   ./configure --prefix=/usr --libdir=/usr/lib32 \
30     --enable-shared --with-include-path=/usr/lib32/gmp
31   make
34 check() {
35   cd $_pkgbasename-$pkgver
36   make -k check
39 package() {
40   cd $_pkgbasename-$pkgver
41   make DESTDIR="$pkgdir/" install
42   rm -rf "${pkgdir}"/usr/{include,share,bin}