diff options
author | root <root@rshg054.dnsready.net> | 2012-01-17 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-17 23:14:55 +0000 |
commit | 7de0a9c21ecdb7becae761d7c9f2e723cb9ae0d3 (patch) | |
tree | cf569d409766ee004e997226104d64aa76bcd28f /core/gnupg | |
parent | 08a16f35d70b750b4db213a4bfcbacf5b3be4d74 (diff) |
Tue Jan 17 23:14:54 UTC 2012
Diffstat (limited to 'core/gnupg')
-rw-r--r-- | core/gnupg/PKGBUILD | 36 | ||||
-rw-r--r-- | core/gnupg/gnupg.install | 21 |
2 files changed, 57 insertions, 0 deletions
diff --git a/core/gnupg/PKGBUILD b/core/gnupg/PKGBUILD new file mode 100644 index 000000000..f678f304e --- /dev/null +++ b/core/gnupg/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 146739 2012-01-16 22:52:44Z dreisner $ +# Maintainer: Andreas Radke <andyrtr at archlinux.org> +# Committer: Judd Vinet <jvinet@zeroflux.org> +pkgname=gnupg +pkgver=1.4.11 +pkgrel=3 +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=('411744e1ef8ce90b87938c4203f001f1') + +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/core/gnupg/gnupg.install b/core/gnupg/gnupg.install new file mode 100644 index 000000000..5a6704716 --- /dev/null +++ b/core/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: |