From 26fd6a015b283bd3bbcac2f852ace17a38e16000 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Thu, 30 Jul 2015 16:50:04 -0400 Subject: Adding python2-foolscap --- pcr/python2-foolscap/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++ pcr/python2-foolscap/PKGBUILD.sig | Bin 0 -> 543 bytes 2 files changed, 40 insertions(+) create mode 100644 pcr/python2-foolscap/PKGBUILD create mode 100644 pcr/python2-foolscap/PKGBUILD.sig diff --git a/pcr/python2-foolscap/PKGBUILD b/pcr/python2-foolscap/PKGBUILD new file mode 100644 index 000000000..831d539dc --- /dev/null +++ b/pcr/python2-foolscap/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Luke R. GPG: rsa4096/3EAE8697 +# Contributor (Arch): Alexander Rødseth +# Contributor (Arch): Chris Brannon +# Contributor (Arch): giniu + +pkgbase=python-foolscap +pkgname=python2-foolscap +pkgver=0.8.0 +pkgrel=1 +pkgdesc='RPC protocol for Python and Twisted' +arch=('any') +url='http://foolscap.lothar.com/' +license=('MIT') +depends=('python2-twisted' 'python2-pyopenssl') +makedepends=('python2-setuptools') +conflicts=('python-foolscap<=0.6.3') +replaces=('python-foolscap<=0.6.3') +options=('!emptydirs') +source=("http://foolscap.lothar.com/releases/foolscap-$pkgver.tar.gz" +"http://foolscap.lothar.com/releases/foolscap-0.8.0.tar.gz.asc" +'PKGBUILD' +'PKGBUILD.sig') +validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697' # PKGBUILD Maintainer's key +'734145FEBE70E5D059C7EDCD3E8692AFAF1B4A2A') # Foolscap Release-Signing Key +sha512sums=('4f491ac1e35e76b7fcee5994312e34696921eb7a9b0913e919142fe2807e32aad5ddbbffec3bfe5e1f4333ec38e0ee607ea9cfe5007b385ab6a15ea913c80f45' +'aa69e8a16f8178d1fffa0442fb795e5be9fb8f978c5992c184644cffb41facd4e0fc2c6b6bd7c4cf889c371930ccb527f8c421004fcd930eb769614f01bbe101' +'SKIP' +'SKIP') + +package_python2-foolscap() { + gpg --verify PKGBUILD.sig PKGBUILD + echo "Note: If the GPG verification fails, import the PKGBUILD maintainer's GPG key. See: https://wiki.parabola.nu/GnuPG#Import_key" + whirlpoolsum=('5b8c26eb081cf211683d6a8ed3177267793fe2aa3258b2e6b381aaa4d367ae4c0fb61b0902a186874efad9d2150303378d4468c573992047ac0994998ba2f534') + [[ "$(openssl dgst -r -whirlpool foolscap-$pkgver.tar.gz | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match. + gpg --verify foolscap-$pkgver.tar.gz.asc foolscap-$pkgver.tar.gz + cd "foolscap-$pkgver" + + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/pcr/python2-foolscap/PKGBUILD.sig b/pcr/python2-foolscap/PKGBUILD.sig new file mode 100644 index 000000000..27553a449 Binary files /dev/null and b/pcr/python2-foolscap/PKGBUILD.sig differ -- cgit v1.2.3