2014-01-13 20:37:34 +00:00
|
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2016-12-17 16:00:09 +00:00
|
|
|
# - disable NEON and ARMv8 crypto support on !AArch64
|
2017-08-02 00:31:35 +00:00
|
|
|
# - fix screwed up capability detection
|
2014-01-13 20:37:34 +00:00
|
|
|
|
|
|
|
pkgname=libgcrypt
|
2020-10-29 13:52:25 +00:00
|
|
|
pkgver=1.8.7
|
2020-07-08 11:16:58 +00:00
|
|
|
pkgrel=1
|
2014-01-13 20:37:34 +00:00
|
|
|
pkgdesc="General purpose cryptographic library based on the code from GnuPG"
|
2017-12-22 12:43:24 +00:00
|
|
|
arch=(x86_64)
|
2019-09-02 15:09:51 +00:00
|
|
|
url="https://www.gnupg.org"
|
2014-01-13 20:37:34 +00:00
|
|
|
license=('LGPL')
|
2016-07-19 12:28:52 +00:00
|
|
|
depends=('libgpg-error')
|
2014-01-13 20:37:34 +00:00
|
|
|
options=('!emptydirs')
|
2015-09-10 23:56:52 +00:00
|
|
|
# https://www.gnupg.org/download/integrity_check.html
|
2017-12-22 12:43:24 +00:00
|
|
|
source=(https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
2020-10-29 13:52:25 +00:00
|
|
|
sha1sums=('ea79a279b27bf25cb1564f96693128f8fc9f41d6'
|
2015-03-01 16:07:03 +00:00
|
|
|
'SKIP')
|
2020-10-29 13:52:25 +00:00
|
|
|
validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)"
|
2017-12-22 12:43:24 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-11-19 02:29:40 +00:00
|
|
|
cd "${pkgname}"-${pkgver}
|
2017-12-22 12:43:24 +00:00
|
|
|
# tests fail due to systemd+libseccomp preventing memory syscalls when building in chroots
|
|
|
|
# t-secmem: line 176: gcry_control (GCRYCTL_INIT_SECMEM, pool_size, 0) failed: General error
|
|
|
|
# FAIL: t-secmem
|
|
|
|
# t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error
|
|
|
|
# FAIL: t-sexp
|
|
|
|
sed -i "s:t-secmem::" tests/Makefile.am
|
|
|
|
sed -i "s:t-sexp::" tests/Makefile.am
|
|
|
|
autoreconf -vfi
|
|
|
|
}
|
2014-01-13 20:37:34 +00:00
|
|
|
|
2014-01-31 16:48:08 +00:00
|
|
|
build() {
|
2019-11-19 02:29:40 +00:00
|
|
|
cd "${pkgname}"-${pkgver}
|
2016-12-17 16:00:09 +00:00
|
|
|
|
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon-support --disable-arm-crypto-support"
|
|
|
|
|
2014-01-13 20:37:34 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--disable-padlock-support \
|
2016-12-17 16:00:09 +00:00
|
|
|
$CONFIG
|
2017-08-02 00:31:35 +00:00
|
|
|
|
|
|
|
# fix screwed up capability detection
|
|
|
|
if [[ $CARCH != "aarch64" ]]; then
|
|
|
|
sed -i '/HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1/d' config.h
|
|
|
|
sed -i '/HAVE_GCC_INLINE_ASM_NEON 1/d' config.h
|
|
|
|
fi
|
|
|
|
|
2014-01-13 20:37:34 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-11-19 02:29:40 +00:00
|
|
|
cd "${pkgname}"-${pkgver}
|
2014-01-13 20:37:34 +00:00
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-11-19 02:29:40 +00:00
|
|
|
cd "${pkgname}"-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2014-01-13 20:37:34 +00:00
|
|
|
}
|