blob: 7dd6595931876ee6434d0fde5b7f773e8e544ae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor (Arch): 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' 'mips64el')
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/
}
|