From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/gnupg/PKGBUILD | 29 +++++++++++++++++++++++++++++ extra/gnupg/gnupg.install | 21 +++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 extra/gnupg/PKGBUILD create mode 100644 extra/gnupg/gnupg.install (limited to 'extra/gnupg') diff --git a/extra/gnupg/PKGBUILD b/extra/gnupg/PKGBUILD new file mode 100644 index 000000000..56b0c2274 --- /dev/null +++ b/extra/gnupg/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 101334 2010-11-28 23:08:17Z tpowa $ +# Maintainer: Andreas Radke +# Committer: Judd Vinet +pkgname=gnupg +pkgver=1.4.11 +pkgrel=2 +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 # docdir can't be set properly + make || return 1 + ln -s ${pkgname}-${pkgver}/scripts .. +} + +package () { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install || return 1 + + # fix fileconflict with gnupg2 pkg + rm ${pkgdir}/usr/share/man/man1/gpg-zip.1 +} diff --git a/extra/gnupg/gnupg.install b/extra/gnupg/gnupg.install new file mode 100644 index 000000000..5a6704716 --- /dev/null +++ b/extra/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: -- cgit v1.2.3-54-g00ecf