summaryrefslogtreecommitdiff
path: root/pcr/pycryptopp/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-09-14 02:29:04 -0700
committerroot <root@rshg054.dnsready.net>2013-09-14 02:29:04 -0700
commit4037e15db64f7056ae2222c22605b41d95d5b3c3 (patch)
tree197b645a67f31a4de4492502880ebf5e47e4ecd0 /pcr/pycryptopp/PKGBUILD
parentab0da22f3d1d275faa99cd8139037a6ec60e2df3 (diff)
Sat Sep 14 02:27:34 PDT 2013
Diffstat (limited to 'pcr/pycryptopp/PKGBUILD')
-rw-r--r--pcr/pycryptopp/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/pycryptopp/PKGBUILD b/pcr/pycryptopp/PKGBUILD
new file mode 100644
index 000000000..f95654884
--- /dev/null
+++ b/pcr/pycryptopp/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com>
+# Contributor: Peter Simons <simons@cryp.to>
+pkgname=pycryptopp
+pkgver=0.6.0
+_pkgtag=1206569328141510525648634803928199668821045408958
+pkgrel=2
+pkgdesc="Python wrappers for the Crypto++ library"
+arch=('i686' 'x86_64')
+url='http://allmydata.org/trac/pycryptopp'
+license=('GPL2' 'custom')
+depends=('python2' 'crypto++')
+makedepends=('darcsver' 'setuptools_darcs')
+source=( http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.$_pkgtag.tar.gz
+ http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.$_pkgtag.tar.gz.asc )
+md5sums=('ce38fbe03705d27da408c78b56eb1947'
+ '76fe2da5b1fc964d9e1ee4596c36d5bf')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver.$_pkgtag"
+ export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1
+ python2 setup.py build
+ python2 setup.py test
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver.$_pkgtag"
+ python2 setup.py install --root="$pkgdir"
+
+ install -d $pkgdir/usr/share/licenses/$pkgname/
+ install -m 644 COPYING* $pkgdir/usr/share/licenses/$pkgname/
+}