diff options
author | root <root@rshg054.dnsready.net> | 2012-02-04 23:14:50 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-04 23:14:50 +0000 |
commit | cdc66cc7110e78bf1197f9effc70422114f9341b (patch) | |
tree | 26d88200b6a071ffe8e21b7022be19ade43d52e5 /testing/gnupg | |
parent | de078a89b9e3a45b6b2e3f0c9d866962e5125ba3 (diff) |
Sat Feb 4 23:14:50 UTC 2012
Diffstat (limited to 'testing/gnupg')
-rw-r--r-- | testing/gnupg/PKGBUILD | 36 | ||||
-rw-r--r-- | testing/gnupg/gnupg.install | 21 |
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/gnupg/PKGBUILD b/testing/gnupg/PKGBUILD new file mode 100644 index 000000000..b795dc482 --- /dev/null +++ b/testing/gnupg/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 148532 2012-02-03 14:51:21Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr at archlinux.org> +# Committer: Judd Vinet <jvinet@zeroflux.org> +pkgname=gnupg +pkgver=1.4.12 +pkgrel=1 +pkgdesc="GNU Privacy Guard - a PGP replacement tool" +arch=('i686' 'x86_64') +license=('GPL3') +depends=('zlib' 'bzip2' 'libldap>=2.4.18' 'libusb-compat' 'curl>=7.16.2' 'readline>=6.0.00') +source=(ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg/$pkgname-$pkgver.tar.bz2) +install=gnupg.install +url="http://www.gnupg.org/" +md5sums=('ce3742e5c7912559cab7894ad8ba7f6b') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-noexecstack + make + #ln -s ${pkgname}-${pkgver}/scripts .. # seems obsolete now +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check #All 27 tests passed +} + +package () { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # fix fileconflict with gnupg2 pkg + rm ${pkgdir}/usr/share/man/man1/gpg-zip.1 +} diff --git a/testing/gnupg/gnupg.install b/testing/gnupg/gnupg.install new file mode 100644 index 000000000..5a6704716 --- /dev/null +++ b/testing/gnupg/gnupg.install @@ -0,0 +1,21 @@ +info_dir=/usr/share/info +info_files=(gnupg1.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} +# vim:set ts=2 sw=2 et: |