void-packages/srcpkgs/gnupg2/template

36 lines
1.1 KiB
Plaintext

# Template file for 'gnupg2'
pkgname=gnupg2
version=2.1.0
revision=2
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=16a8c3f50a15bf37d2dfb1c5e4bb3ec533e1d0b6a4043ff3680a376a3ad4058b
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
}