void-packages/srcpkgs/gnupg2/template
2014-12-17 07:01:48 +00:00

35 lines
1.1 KiB
Text

# Template file for 'gnupg2'
pkgname=gnupg2
version=2.1.1
revision=1
wrksrc="gnupg-${version}"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}
--with-ksba-prefix=${XBPS_CROSS_BASE}
--with-npth-prefix=${XBPS_CROSS_BASE}
--with-libassuan-prefix=${XBPS_CROSS_BASE}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libldap-devel libcurl-devel readline-devel>=6.3
libusb-compat-devel libgpg-error-devel>=1.15 libgcrypt-devel libassuan-devel
libksba-devel npth-devel gnutls-devel"
depends="pinentry"
replaces="gnupg-agent>=0"
short_desc="The GNU Privacy Guard"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.gnupg.org/"
update_pkgname=gnupg
distfiles="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${version}.tar.bz2"
checksum=70ecd01d2875db62624c911c2fd815742f50aef5492698eb3bfc09a08690ce49
post_install() {
# remove conflicts with gnupg 1.
rm ${DESTDIR}/usr/share/man/man1/gpg-zip.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
}