[arch-commits] Commit in python-axolotl/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 02:09:29 UTC 2019
Date: Monday, November 4, 2019 @ 02:09:28
Author: felixonmars
Revision: 522977
archrelease: copy trunk to community-staging-any
Added:
python-axolotl/repos/community-staging-any/
python-axolotl/repos/community-staging-any/PKGBUILD
(from rev 522976, python-axolotl/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-axolotl/repos/community-staging-any/PKGBUILD (from rev 522976, python-axolotl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 02:09:28 UTC (rev 522977)
@@ -0,0 +1,60 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Alexandre Bouvier <contact AT amb DOT tf>
+# Contributor: Ivan Shapovalov <intelfx at intelfx.name>
+# Contributor: Tommaso Sardelli <lacapannadelloziotom AT gmail DOT com>
+# Contributor: Philipp Joram <phijor AT t-online DOT de>
+
+pkgbase=python-axolotl
+pkgname=('python-axolotl' 'python2-axolotl')
+pkgver=0.2.3
+pkgrel=2
+pkgdesc='Python port of libaxolotl'
+url='https://github.com/tgalal/python-axolotl'
+arch=('any')
+license=('GPL3')
+makedepends=('python-setuptools' 'python-protobuf' 'python-cryptography' 'python-axolotl-curve25519'
+ 'python2-setuptools' 'python2-protobuf' 'python2-cryptography' 'python2-axolotl-curve25519')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(https://github.com/tgalal/python-axolotl/archive/${pkgver}/${pkgbase}-${pkgver}.tar.gz)
+sha256sums=('effddbe6ac12b3065defae553a1fd3e3f43033bb7bc9f871744a2d122b3abd41')
+sha512sums=('1a10dc9df2f95d19b49909d4d136b5266aae19e24ac84f8b263ae7d4de18f77353c737616ac0648b600e05699a90d348f95c6c1659849986becefb4a0277fc80')
+
+prepare() {
+ cp -a ${pkgbase}-${pkgver}{,-py2}
+}
+
+build() {
+ msg2 'Building python...'
+ (cd ${pkgbase}-${pkgver}
+ python setup.py build
+ )
+ msg2 'Building python2...'
+ (cd ${pkgbase}-${pkgver}-py2
+ python2 setup.py build
+ )
+}
+
+check() {
+ msg2 'Testing python...'
+ (cd ${pkgbase}-${pkgver}
+ py.test
+ )
+ msg2 'Testing python2...'
+ (cd ${pkgbase}-${pkgver}-py2
+ py.test2
+ )
+}
+
+package_python-axolotl() {
+ depends=('python-protobuf' 'python-cryptography' 'python-axolotl-curve25519')
+ cd ${pkgbase}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-axolotl() {
+ depends=('python2-protobuf' 'python2-cryptography' 'python2-axolotl-curve25519')
+ cd ${pkgbase}-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list