Mail archive
alpine-aports

[alpine-aports] [PATCH 3/5] testing/py-axolotl-curve25519: New aport

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Sun, 1 Jul 2018 15:55:20 +0200

https://github.com/tgalal/python-axolotl-curve25519
A python wrapper for curve25519 library with ed25519 signatures
---
 testing/py-axolotl-curve25519/APKBUILD | 50 ++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 testing/py-axolotl-curve25519/APKBUILD
diff --git a/testing/py-axolotl-curve25519/APKBUILD b/testing/py-axolotl-curve25519/APKBUILD
new file mode 100644
index 0000000000..337c0e4e3c
--- /dev/null
+++ b/testing/py-axolotl-curve25519/APKBUILD
_at_@ -0,0 +1,50 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
+pkgname=py-axolotl-curve25519
+_pkgname="python-${pkgname#py-}"
+pkgver=0.4.1b
+_pkgver=0.4.1-2
+pkgrel=0
+pkgdesc="A python wrapper for curve25519 library with ed25519 signatures"
+url="https://github.com/tgalal/python-axolotl-curve25519"
+arch="all"
+license="GPL3"
+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"
+	python3 setup.py test
+}
+
+package() {
+	mkdir -p "$pkgdir"
+}
+
+_py2() {
+	replaces="$pkgname"
+	_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"
-- 
2.18.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Jul 01 2018 - 15:55:20 GMT