PKGBUILDs/extra/gnupg2/PKGBUILD
2009-10-09 21:23:22 -05:00

33 lines
1.1 KiB
Bash

# $Id: PKGBUILD 52175 2009-09-16 12:13:15Z allan $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=gnupg2
pkgver=2.0.13
pkgrel=2
pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool"
arch=('i686' 'x86_64')
depends=('libldap' 'curl>=7.19.4' 'bzip2' 'zlib' 'libksba>=1.0.3' 'libgcrypt>=1.4.3-2'
'pth' 'libusb' 'libassuan>=1.0.5' 'texinfo' 'readline>=6.0.00')
optdepends=('pinentry'
'dirmngr')
license=('GPL')
#options=('!makeflags') # works in 2.0.11
source=(ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2)
url="http://www.gnupg.org/"
install=gnupg2.install
build() {
cd ${srcdir}/gnupg-$pkgver
# news files says it got fixed in 2.0.1
# O2 breaks it on x86_64
# [ "$CARCH" = "x86_64" ] && EXTRAOPTS="--disable-optimization"
./configure --prefix=/usr --libexecdir=/usr/lib/gnupg2 #$EXTRAOPTS
make || return 1
make DESTDIR=${pkgdir} install || return 1
# move conflicting files
mv ${pkgdir}/usr/share/gnupg{,2}
rm -f ${pkgdir}/usr/share/info/dir
}
md5sums=('41bd7629d815b90c15b37bb31c2f07c0')