gnupg2: update to 2.2.27

Also fix pre-existing build breakage (@ahesford).

Co-authored-by: Roberto Ricci <ricci@disroot.org>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>

Closes: #27899 [via git-merge-pr]
This commit is contained in:
Roberto Ricci 2021-01-13 21:33:02 +01:00 committed by Andrew J. Hesford
parent 11a1e3b151
commit 9c9726ec9f

View file

@ -1,13 +1,14 @@
# Template file for 'gnupg2'
pkgname=gnupg2
version=2.2.26
version=2.2.27
revision=1
wrksrc="gnupg-${version}"
build_style=gnu-configure
configure_args="--with-libgcrypt-prefix=${XBPS_CROSS_BASE}
--with-ksba-prefix=${XBPS_CROSS_BASE} --with-npth-prefix=${XBPS_CROSS_BASE}
--with-libassuan-prefix=${XBPS_CROSS_BASE} --enable-gpg-is-gpg2
$(vopt_enable ldap)"
configure_args="--enable-gpg-is-gpg2 $(vopt_enable ldap)
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr
--with-libassuan-prefix=${XBPS_CROSS_BASE}/usr
--with-ksba-prefix=${XBPS_CROSS_BASE}/usr
--with-npth-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config"
makedepends="bzip2-devel gnutls-devel libassuan-devel libcurl-devel
libksba-devel libldap-devel libusb-compat-devel npth-devel sqlite-devel"
@ -17,11 +18,13 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnupg.org/"
distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
checksum=517569e6c9fad22175df16be5900f94c991c41e53612db63c14493e814cfff6d
checksum=34e60009014ea16402069136e0a5f63d9b65f90096244975db5cea74b3d02399
build_options="ldap"
build_options_default="ldap"
pre_configure() {
post_patch() {
# On at least aarch64, configure sets this even though it doesn't exist
vsed -i 's/HAVE_DECL_SYS_SIGLIST/0/' common/signal.c
vsed -i '/examples\/systemd-user/d' doc/Makefile.in
}