2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=libgcrypt
|
2022-03-30 02:09:05 +02:00
|
|
|
pkgver=1.10.1
|
2022-11-17 09:21:50 +01:00
|
|
|
pkgrel=02
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="General purpose cryptographic library based on the code from GnuPG w/o systemd"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://www.gnupg.org"
|
|
|
|
depends=('libgpg-error')
|
|
|
|
options=('!emptydirs')
|
2022-11-17 09:21:50 +01:00
|
|
|
#options=('!emptydirs' 'debug') ##### uncomment this line to have the debug pkg produced
|
2022-03-20 13:19:37 +01:00
|
|
|
# https://www.gnupg.org/download/integrity_check.html
|
|
|
|
source=(https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
|
|
|
|
|
|
|
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
|
|
|
|
## We commented out those two lines above since without systemd ALL tests pass. Thank you Gnu!
|
|
|
|
autoreconf -vfi
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}"-${pkgver}
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--disable-padlock-support \
|
|
|
|
--disable-systemd
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "${pkgname}"-${pkgver}
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgname}"-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=('LGPL')
|
|
|
|
|
2022-11-17 09:21:50 +01:00
|
|
|
#validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)"
|
|
|
|
validpgpkeys=('AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key)
|
|
|
|
|
|
|
|
sha256sums=(ef14ae546b0084cd84259f61a55e07a38c3b53afc0f546bffcef2f01baffe9de # libgcrypt-1.10.1.tar.bz2
|
|
|
|
76fa824b86870ee4c89535c1831cabc3f17e1bfe1beb474af4d51d094cb3dc51) # libgcrypt-1.10.1.tar.bz2.sig
|
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
|