1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
4 pkgname=lib32-$_pkgbasename
7 pkgdesc="General purpose cryptographic library based on the code from GnuPG (32-bit)"
9 url="https://www.gnupg.org"
11 depends=('lib32-libgpg-error' $_pkgbasename)
12 makedepends=(gcc-multilib libtool-multilib)
13 source=(https://gnupg.org/ftp/gcrypt/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2{,.sig})
14 sha1sums=('0b9555960d84a09ea14e52360808f2e02e9c12d2'
16 sha256sums=('3b9c02a004b68c256add99701de00b383accccf37177e0d6c58289664cce0c03'
19 '6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020)
20 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD' # Niibe Yutaka (GnuPG Release Key)
24 cd ${_pkgbasename}-${pkgver}
26 # Use 32-bit assembler
27 sed 's:i\[34567\]86\*-\*-\*:x86_64-*-*:' -i mpi/config.links
28 sed 's:x86_64-\*-\*:ignore:;s:i?86-\*-\*:x86_64-*-*:' -i configure.ac
36 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
38 cd ${_pkgbasename}-${pkgver}
40 ./configure --prefix=/usr --disable-static --disable-padlock-support \
41 --libdir=/usr/lib32 --enable-shared
46 cd ${_pkgbasename}-${pkgver}
48 make DESTDIR="${pkgdir}" install
49 rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}