archrelease: copy trunk to community-any
[ArchLinux/community.git] / lib32-libgcrypt / trunk / PKGBUILD
blob417dc4a88862c04841a1744f96264b412a4f5a39
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 _pkgbasename=libgcrypt
4 pkgname=lib32-$_pkgbasename
5 pkgver=1.10.2
6 pkgrel=1
7 pkgdesc="General purpose cryptographic library based on the code from GnuPG (32-bit)"
8 arch=(x86_64)
9 url="https://www.gnupg.org"
10 license=('LGPL')
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'
15           'SKIP')
16 sha256sums=('3b9c02a004b68c256add99701de00b383accccf37177e0d6c58289664cce0c03'
17             'SKIP')
18 validpgpkeys=(
19   '6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020)
20   'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD' # Niibe Yutaka (GnuPG Release Key)
23 prepare() {
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
30   autoreconf -fi
33 build() {
34   export CC="gcc -m32"
35   export CXX="g++ -m32"
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
42   make
45 package() {
46   cd ${_pkgbasename}-${pkgver}
48   make DESTDIR="${pkgdir}" install
49   rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}