blob: 9e69c6d9692a602de896cd6bbe0ff20ed3255aa3 (
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
46
47
48
49
|
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
pkgbase=python-pycryptodomex
pkgname=(python-pycryptodomex python2-pycryptodomex)
pkgver=3.7.3
pkgrel=1
pkgdesc='A self-contained Python package of low-level cryptographic primitives'
url='http://www.pycryptodome.org/'
arch=('x86_64')
license=('BSD')
makedepends=('python-setuptools'
'python2-setuptools')
source=("https://pypi.org/packages/source/p/pycryptodomex/pycryptodomex-$pkgver.tar.gz")
md5sums=('c9ed9aeb5c46fc5fc7cc8cb1ce542040')
prepare() {
cp -a pycryptodomex-$pkgver{,-python2}
}
build() {
cd "$srcdir"/pycryptodomex-$pkgver
python setup.py build
cd "$srcdir"/pycryptodomex-$pkgver-python2
python2 setup.py build
}
package_python-pycryptodomex() {
depends=('python')
cd pycryptodomex-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
}
package_python2-pycryptodomex() {
depends=('python2')
cd pycryptodomex-$pkgver-python2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
}
|