OCaml 4.14.0 rebuild
[arch-packages.git] / libgcrypt / trunk / PKGBUILD
blobdbc934eed9965ac2b1fe2cc5b8afd2952e88cf01
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
7 pkgname=libgcrypt
8 pkgver=1.10.1
9 pkgrel=1
10 pkgdesc="General purpose cryptographic library based on the code from GnuPG"
11 arch=(x86_64)
12 url="https://www.gnupg.org"
13 license=('LGPL')
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'
19           'SKIP')
20 validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)"
22 prepare() {
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
27   #  FAIL: t-secmem
28   #  t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error
29   #  FAIL: t-sexp
30   sed -i "s:t-secmem::" tests/Makefile.am
31   sed -i "s:t-sexp::" tests/Makefile.am
32   autoreconf -vfi
35 build() {
36   cd "${pkgname}"-${pkgver}
37   ./configure --prefix=/usr \
38         --disable-static \
39         --disable-padlock-support
40   make
43 check() {
44   cd "${pkgname}"-${pkgver}
45   make check
48 package() {
49   cd "${pkgname}"-${pkgver}
50   make DESTDIR="${pkgdir}" install