From 8fb27a5389afb53b2f8846f9b48114644036316f Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 19 Feb 2015 09:38:11 -0300 Subject: gnupg1: required by monkeysphere --- pcr/gnupg1/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pcr/gnupg1/PKGBUILD (limited to 'pcr/gnupg1/PKGBUILD') diff --git a/pcr/gnupg1/PKGBUILD b/pcr/gnupg1/PKGBUILD new file mode 100644 index 000000000..fb426a1a9 --- /dev/null +++ b/pcr/gnupg1/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 148992 2012-02-05 12:21:23Z andyrtr $ +# Contributor: Andreas Radke +# Committer: Judd Vinet +pkgname=gnupg1 +pkgname_=gnupg +pkgver=1.4.18 +pkgrel=4 +pkgdesc="GNU Privacy Guard - a PGP replacement tool" +arch=('i686' 'x86_64' 'armv6h') +license=('GPL3') +depends=('zlib' 'bzip2' 'libldap>=2.4.18' 'libusb-compat' 'curl>=7.16.2' 'readline>=6.0.00') +source=("ftp://ftp.gnupg.org/gcrypt/gnupg/$pkgname_-$pkgver.tar.bz2"{,.sig}) +install=gnupg.install +url="http://www.gnupg.org/" +sha1sums=('41462d1a97f91abc16a0031b5deadc3095ce88ae' + 'SKIP') +validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6' + '46CC730865BB5C78EBABADCF04376F3EE0856959' + '031EC2536E580D8EA286A9F22071B08A33BD3F06' + 'D238EA65D64C67ED4C3073F28A861B1C7EFD60D9') + +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 file conflicts with gnupg2 pkg. Cd into directories to prevent + # unintentional transformation of the full path. + cd "$pkgdir/usr/share/man/man1" + rename gpg gpg1 gpg* + + cd "$pkgdir/usr/bin" + rename gpg gpg1 gpg* + + cd "$pkgdir/usr/share/man/man7" + rename gnupg gnupg1 gnupg* + + # Correct multiple renames if makepkg is rerun. + find "$pkgdir" -name '*pg11*' -exec rename pg11 pg1 '{}' \+ +} -- cgit v1.2.3