1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 # after a .so bump first rebuild dirmngr
4 # with sudo testing-x86_64-build -- -I libgcrypt-1.6.0-1-x86_64.pkg.tar.xz
5 # then cp /usr/lib/libgcrypt.so.11 /var/lib/archbuild/staging-x86_64/root/usr/lib/ and do staging-x86_64-build
10 pkgdesc="General purpose cryptographic library based on the code from GnuPG"
12 url="https://www.gnupg.org"
14 depends=('libgpg-error')
15 options=('!emptydirs')
16 # https://www.gnupg.org/download/integrity_check.html
17 source=(https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
18 sha1sums=('de2cc32e7538efa376de7bf5d3eafa85626fb95f'
20 validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)"
23 cd "${pkgname}"-${pkgver}
25 # tests fail due to systemd+libseccomp preventing memory syscalls when building in chroots
26 # t-secmem: line 176: gcry_control (GCRYCTL_INIT_SECMEM, pool_size, 0) failed: General error
28 # t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error
30 sed -i "s:t-secmem::" tests/Makefile.am
31 sed -i "s:t-sexp::" tests/Makefile.am
36 cd "${pkgname}"-${pkgver}
37 ./configure --prefix=/usr \
39 --disable-padlock-support
44 cd "${pkgname}"-${pkgver}
49 cd "${pkgname}"-${pkgver}
50 make DESTDIR="${pkgdir}" install