diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 20:10:00 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-21 01:16:16 -0300 |
commit | 29d9e091f6830bb33558956c9d6db5a71337a64b (patch) | |
tree | 1b817f195a3015ebda6a8db80a5381bc963fae9b /testing/py3-axolotl-curve25519/APKBUILD | |
parent | 12229e03d32b3cab20e6e136fda5cc1b749372a7 (diff) | |
download | aports-29d9e091f6830bb33558956c9d6db5a71337a64b.tar.bz2 aports-29d9e091f6830bb33558956c9d6db5a71337a64b.tar.xz |
testing/py3-axolotl-curve25519: rename from py-axolotl-curve25519
Diffstat (limited to 'testing/py3-axolotl-curve25519/APKBUILD')
-rw-r--r-- | testing/py3-axolotl-curve25519/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/py3-axolotl-curve25519/APKBUILD b/testing/py3-axolotl-curve25519/APKBUILD new file mode 100644 index 0000000000..a59979d18d --- /dev/null +++ b/testing/py3-axolotl-curve25519/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> +pkgname=py-axolotl-curve25519 +_pkgname="python-${pkgname#py-}" +pkgver=0.4.1b +_pkgver=0.4.1-2 +pkgrel=1 +pkgdesc="A python wrapper for curve25519 library with ed25519 signatures" +url="https://github.com/tgalal/python-axolotl-curve25519" +arch="all" +license="GPL-3.0-only" +makedepends="py-setuptools python2-dev python3-dev" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/tgalal/$_pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$_pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="cbc7c6caa47a9a811640c247a1be727d7b1b68bcdb4c5336e02b4d1eaf9fd2c57b7438b0da466a379a1c0f3f146756b9b7eea3c9b7945ce88478d4bf0b8a1e0d py-axolotl-curve25519-0.4.1b.tar.gz" |