68 lines
2.4 KiB
Bash
68 lines
2.4 KiB
Bash
#!/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
|
|
pkgver=1.11.0
|
|
pkgrel=02
|
|
pkgdesc="General purpose cryptographic library based on the code from GnuPG w/o systemd"
|
|
url="https://www.gnupg.org"
|
|
depends=('glibc' 'libgpg-error')
|
|
options=('!emptydirs')
|
|
#options=('!emptydirs' 'debug') ##### uncomment this line to have the debug pkg produced
|
|
# 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
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 {COPYING.LIB,LICENSES} "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('BSD-3-Clause' 'BSD-3-Clause OR GPL-2.0-only' 'GPL-2.0-or-later' 'LGPL-2.0-or-later' 'LGPL-2.1-or-later' 'X11' 'LicenseRef-scancode-public-domain' 'LicenseRef-OCB1')
|
|
|
|
validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)"
|
|
#validpgpkeys=('AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key)
|
|
|
|
sha256sums=(09120c9867ce7f2081d6aaa1775386b98c2f2f246135761aae47d81f58685b9c # libgcrypt-1.11.0.tar.bz2
|
|
87b81c940520bd1987e092ff13dbcb5727eda87858d75b64cdc654f267943411) # libgcrypt-1.11.0.tar.bz2.sig
|
|
|
|
## 9129f83090fa0f4f10887ce69c042a58e6e6ca97515e39ea63954a515af023ea libgcrypt-1.11.0-02-x86_64.pkg.tar.lz
|
|
|