blob: 1660723cea9cd09d0b323b3c0c2919e3fcf06b65 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 112731 2014-06-05 17:07:56Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
pkgbase=python-salsa20
pkgname=("python-salsa20" "python2-salsa20")
pkgver=0.3.0
pkgrel=1
pkgdesc='Bindings for the NaCL implementation of Salsa20 and XSalsa20 by D. J. Bernstein'
arch=('i686' 'x86_64')
url="http://github.com/keybase/python-salsa20"
license=('BSD')
makedepends=('python' 'python2')
source=("https://pypi.python.org/packages/source/s/salsa20/salsa20-$pkgver.tar.gz")
md5sums=('5f199f3d6c643f05904b9d4a0b5d7e00')
prepare() {
cp -r "salsa20-$pkgver"{,-py2}
}
check() {
# Tests has to be ran after installation
cd salsa20-$pkgver
#python -m doctest -v README.rst
cd ../salsa20-$pkgver-py2
#python2 -m doctest -v README.rst
}
package_python-salsa20() {
depends=('python')
cd salsa20-$pkgver
python3 setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-salsa20() {
depends=('python2')
cd salsa20-$pkgver-py2
python2 setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|