# $Id$ PNAME="gnupg" PVER="2.2.11" PBUILD="r4" PCAT="app-crypt" DESCRIPTION="GnuPG is a complete and free replacement for PGP." HOMEPAGE="http://www.gnupg.org/" DEPEND=">= virtual/glibc >= virtual/mta >= sys-libs/readline-7.0 >= app-arch/bzip2-1.0.6 >= net-misc/curl-7.62 >= dev-libs/pth-2 >= app-crypt/libgpg-error-1.32 >= app-crypt/libgcrypt-1.8 >= app-crypt/libksba-1.3.5 >= app-crypt/libassuan-2.5.1 >= app-crypt/pinentry-1.1 >= app-crypt/npth-1.6" SDEPEND=">= sys-dev/gettext-0.18 >= sys-apps/texinfo-5" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mbuild mtools systemd msetfeature "!check" SRC_URI=( https://gnupg.org/ftp/gcrypt/${PNAME}/${SRCFILE} #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.gnupg.org/download/index.en.html | grep ${PNAME}-2 | highesttarball" src_compile() { mconfigure \ --libexecdir=/usr/'$(mlibdir)'/${PNAME} \ --enable-nls \ --enable-symcryptrun \ --enable-gpg \ --enable-gpgsm \ --enable-agent \ --enable-bzip2 \ --enable-scdaemon \ --disable-ldap \ --disable-capabilities \ --without-ldap \ || die mmake || die } src_install() { mmake DESTDIR=${BINDIR} install || die # fix missing symlinks and man-pages mlink gpg /usr/bin/gpg2 || die mlink gpgv /usr/bin/gpgv2 || die echo ".so man1/gpg.1" > ${BINDIR}/usr/share/man/man1/gpg2.1 || die echo ".so man1/gpgv.1" > ${BINDIR}/usr/share/man/man1/gpgv2.1 || die # install systemd user services minstalldir $(mget-systemd-user-unit-dir) || die local svc svcdir svcdir="${SRCDIR}" if [[ ${MULTILIB_BUILD} = true ]] then [[ ${ARCH} = x86_64 ]] && svcdir="${SRCDIR}-"$(MULTILIB_VERBOSE=false only-m64 echo $(mabi)) [[ ${ARCH} = i*86 ]] && svcdir="${SRCDIR}-"$(MULTILIB_VERBOSE=false only-m32 echo $(mabi)) fi for svc in ${svcdir}/doc/examples/systemd-user/*.{socket,service} do minstallfile ${svc} $(mget-systemd-user-unit-dir)/ || die done minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die }