# Maintainer: Natanael Copa pkgname=gnupg pkgver=2.1.5 _ver=${pkgver/_beta/-beta} pkgrel=0 pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool" url="http://www.gnupg.org/" arch="all" license="GPL" options="" depends="pinentry" makedepends="curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev npth-dev zlib-dev libassuan-dev openldap-dev" subpackages="$pkgname-doc" source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$_ver.tar.bz2 0001-Include-sys-select.h-for-FD_SETSIZE.patch " _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build () { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-nls \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install # compat symlink ln -s gpg2 "$pkgdir"/usr/bin/gpg } md5sums="ff16648f14ec164c7afce1066019364b gnupg-2.1.5.tar.bz2 1d944009f039912d92e4f119bd6826e4 0001-Include-sys-select.h-for-FD_SETSIZE.patch" sha256sums="b5105a7160c39ba6e3aa53789b09f1bfac6e3422d15cc9f3a2f71f82320aa84c gnupg-2.1.5.tar.bz2 6ce103e1bf68ba8e35b0e6d5805632deddded62b3224b185589f7bd9243ddb9e 0001-Include-sys-select.h-for-FD_SETSIZE.patch" sha512sums="4f24dca8978021be8e6c6da2691170d8f41c525f5650d9940600a01395b9a3606c7b0275a2b2232cbce0a6fbc034763e258a6ee60f18ca1fc58d76a06f64b9b1 gnupg-2.1.5.tar.bz2 c6cc4595081c5b025913fa3ebecf0dff87a84f3c669e3fef106e4fa040f1d4314ee52dd4c0e0002b213034fb0810221cfdd0033eae5349b6e3978f05d08bcac7 0001-Include-sys-select.h-for-FD_SETSIZE.patch"