void-packages/srcpkgs/gnupg2/template
2020-09-04 16:33:19 +02:00

45 lines
1.4 KiB
Bash

# Template file for 'gnupg2'
pkgname=gnupg2
version=2.2.23
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)"
hostmakedepends="pkg-config"
makedepends="bzip2-devel gnutls-devel libassuan-devel libcurl-devel
libksba-devel libldap-devel libusb-compat-devel npth-devel sqlite-devel"
depends="pinentry"
short_desc="GNU Privacy Guard (2.x)"
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=10b55e49d78b3e49f1edb58d7541ecbdad92ddaeeb885b6f486ed23d1cd1da5c
build_options="ldap"
build_options_default="ldap"
pre_configure() {
vsed -i '/examples\/systemd-user/d' doc/Makefile.in
}
post_install() {
# remove conflicts with gnupg 1.
mv ${DESTDIR}/usr/share/man/man7/gnupg.7 ${DESTDIR}/usr/share/man/man7/gnupg2.7
vmkdir usr/share/examples
mv ${DESTDIR}/usr/share/doc/gnupg/examples ${DESTDIR}/usr/share/examples/gnupg2
mv ${DESTDIR}/usr/share/doc/gnupg ${DESTDIR}/usr/share/doc/gnupg2
}
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
}
}