afa62e63b8
[ci skip]
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'gnupg2'
|
|
pkgname=gnupg2
|
|
version=2.2.12
|
|
revision=2
|
|
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="bzip2-devel gnutls-devel libassuan-devel libcurl-devel
|
|
libksba-devel libldap-devel libusb-compat-devel npth-devel sqlite-devel"
|
|
depends="pinentry"
|
|
short_desc="The GNU Privacy Guard (2.x)"
|
|
maintainer="Juan RP <xtraeme@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=db030f8b4c98640e91300d36d516f1f4f8fe09514a94ea9fc7411ee1a34082cb
|
|
|
|
pre_configure() {
|
|
sed -i '/^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
|
|
}
|
|
}
|