void-packages/srcpkgs/gnupg2/template
Sir_Boops d2d57466f4 gnupg2: update to 2.2.0
Closes: #7517 [via git-merge-pr]
2017-08-29 09:30:37 +02:00

47 lines
1.4 KiB
Bash

# Template file for 'gnupg2'
pkgname=gnupg2
version=2.2.0
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"
hostmakedepends="pkg-config"
makedepends="zlib-devel libldap-devel libcurl-devel readline-devel
libusb-compat-devel libgpg-error-devel libgcrypt-devel libassuan-devel
libksba-devel npth-devel gnutls-devel bzip2-devel sqlite-devel
libusb-compat-devel"
depends="pinentry"
short_desc="The GNU Privacy Guard (2.x)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://www.gnupg.org/"
distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
checksum=d4514a0be0f7a1ff263193330019eb4b53c82f0f5e230af3c14df371271a45e6
pre_configure() {
sed -i '/^CFLAGS_orig=/d;/^CFLAGS=$/d' configure
sed -i '/examples\/systemd-user/d' doc/Makefile.in
}
post_install() {
# remove conflicts with gnupg 1.
rm ${DESTDIR}/usr/share/man/man7/gnupg.7
vmkdir usr/share/examples
mv ${DESTDIR}/usr/share/doc/gnupg/examples ${DESTDIR}/usr/share/examples/gnupg2
rm -rf ${DESTDIR}/usr/share/doc/gnupg
}
gnupg2-scdaemon_package() {
depends="${sourcepkg}>=${version}_${revision} libpcsclite"
short_desc+=" - smartcard daemon"
pkg_install() {
vmove usr/libexec/scdaemon
vmove usr/share/man/man1/scdaemon.1
}
}