mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:24:37 +08:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
pkgname=libgcrypt
|
|
pkgver=1.8.3
|
|
pkgrel=1
|
|
pkgdesc="a general purpose crypto library based on the code used"
|
|
arch=('x86_64')
|
|
url="http://www.gnupg.org"
|
|
license=('LGPL')
|
|
depends=('libgpg-error')
|
|
options=('!emptydirs')
|
|
# https://www.gnupg.org/download/integrity_check.html
|
|
source=(https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
|
# https://gnupg.org/download/integrity_check.html
|
|
sha1sums=('13bd2ce69e59ab538e959911dfae80ea309636e3'
|
|
'SKIP')
|
|
validpgpkeys=('031EC2536E580D8EA286A9F22071B08A33BD3F06' # "NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>"
|
|
'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
# 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
|
|
}
|
|
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--disable-padlock-support
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|