# Template file for 'gnupg2' pkgname=gnupg2 version=2.1.2 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 bzip2-devel" depends="pinentry" short_desc="The GNU Privacy Guard" maintainer="Juan RP " license="GPL-3" homepage="http://www.gnupg.org/" distfiles="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${version}.tar.bz2" checksum=404f5a43d591dfe41f0ffb204b49a1533b67d77bc1fd68febd7e447575616792 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 }