X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.ovgu.de (mail.ovgu.de [141.44.1.66]) by lists.alpinelinux.org (Postfix) with ESMTP id DCFD35C6101 for ; Sun, 1 Jul 2018 13:55:40 +0000 (GMT) Received: from mail.ovgu.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 6229B40064 for ; Sun, 1 Jul 2018 15:55:40 +0200 (CEST) Received: from localhost.localdomain (port-92-195-15-206.dynamic.qsc.de [92.195.15.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ovgu.de (Postfix) with ESMTPSA id 08B2740063; Sun, 1 Jul 2018 15:55:39 +0200 (CEST) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Cc: Marian Buschsieweke Subject: [alpine-aports] [PATCH 3/5] testing/py-axolotl-curve25519: New aport Date: Sun, 1 Jul 2018 15:55:20 +0200 Message-Id: <20180701135522.20390-3-marian.buschsieweke@ovgu.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701135522.20390-1-marian.buschsieweke@ovgu.de> References: <20180701135522.20390-1-marian.buschsieweke@ovgu.de> X-PMX-Version: 6.4.4.2767743, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.7.1.134816, AntiVirus-Engine: 5.50.0, AntiVirus-Data: 2018.6.28.5500004 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1800_1899 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, MULTIPLE_REAL_RCPTS 0, RDNS_GENERIC_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, REFERENCES 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __C230066_P5 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FRAUD_MONEY 0, __FRAUD_MONEY_BIG_COIN 0, __FRAUD_MONEY_BIG_COIN_DIG 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_MONEY_VALUE 0, __FROM_DOMAIN_IN_ANY_CC1 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __INVOICE_MULTILINGUAL 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0' X-Spam-Score: Gauge=IIIIIIII X-PMX-consideredAsSpam: no X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 @@ -0,0 +1,50 @@ +# Maintainer: Marian Buschsieweke +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@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---