# Maintainer: Natanael Copa pkgname=gnupg1 pkgver=1.4.16 pkgrel=2 pkgdesc="GNU Privacy Guard 1 - a PGP replacement tool" url="http://www.gnupg.org/" arch="all" license="GPL" depends="pinentry" makedepends="curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev zlib-dev libiconv-dev libassuan-dev" subpackages="$pkgname-doc" provides="gnupg=$pkgver-r$pkgrel" source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2" _builddir="$srcdir/gnupg-$pkgver" prepare() { cd "$_builddir" # Fix PIC definitions sed -i -e 's:PIC:__PIC__:' \ mpi/i386/mpih-add1.S \ mpi/i386/mpih-sub1.S \ intl/relocatable.c \ || return 1 } build() { cd "$_builddir" export CFLAGS="$CFLAGS -g" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-nls \ --enable-noexecstack \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install } doc() { default_doc provides="gnupg-doc=$pkgver-r$pkgrel" } md5sums="6df73c57d3ece1dd36dc2a7679f00fb0 gnupg-1.4.16.tar.bz2" sha256sums="7b3b748e6aaa338092a0b26b1730cd9355765b55e3684f58dd70f9a1b00f4a2f gnupg-1.4.16.tar.bz2" sha512sums="62bccf22211c25cf2ffbf9d35b8f47211e3a71fd92828705d12b23e7d658c9c65c6d845eb5e887e0d855d90a49a5033ecf9de4e22a63e7d3fc052eb1ed33dff4 gnupg-1.4.16.tar.bz2"