53 lines
1.6 KiB
Bash
53 lines
1.6 KiB
Bash
# Template file for 'gnupg'
|
|
pkgname=gnupg
|
|
version=2.2.34
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="$(vopt_enable ldap)
|
|
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr
|
|
--with-libassuan-prefix=${XBPS_CROSS_BASE}/usr
|
|
--with-ksba-prefix=${XBPS_CROSS_BASE}/usr
|
|
--with-npth-prefix=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="bzip2-devel gnutls-devel libassuan-devel libcurl-devel
|
|
libksba-devel libldap-devel libusb-compat-devel npth-devel sqlite-devel
|
|
libgcrypt-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=562a3350dcf66cb67c5825c67ff2c2904db1e30ec8e1d353adc14efba9abf43f
|
|
build_options="ldap"
|
|
build_options_default="ldap"
|
|
|
|
post_install() {
|
|
vmkdir usr/share/examples
|
|
rm -r $DESTDIR/usr/share/doc/gnupg/examples/systemd-user
|
|
mv ${DESTDIR}/usr/share/doc/gnupg/examples \
|
|
${DESTDIR}/usr/share/examples/gnupg
|
|
}
|
|
|
|
gnupg2_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - compat package"
|
|
pkg_install() {
|
|
vmkdir usr/bin
|
|
ln -s gpg $PKGDESTDIR/usr/bin/gpg2
|
|
ln -s gpgv $PKGDESTDIR/usr/bin/gpgv2
|
|
vmkdir usr/share/examples
|
|
ln -s gnupg $PKGDESTDIR/usr/share/examples/gnupg2
|
|
vmkdir usr/share/doc
|
|
ln -s gnupg $PKGDESTDIR/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
|
|
}
|
|
}
|