[arch-commits] Commit in python-axolotl/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Dec 11 09:54:36 UTC 2019


    Date: Wednesday, December 11, 2019 @ 09:54:36
  Author: arojas
Revision: 536790

Drop python2

Modified:
  python-axolotl/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++--------------------------------
 1 file changed, 10 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-11 09:50:28 UTC (rev 536789)
+++ PKGBUILD	2019-12-11 09:54:36 UTC (rev 536790)
@@ -4,8 +4,7 @@
 # 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')
+pkgname=python-axolotl
 pkgver=0.2.3
 pkgrel=2
 pkgdesc='Python port of libaxolotl'
@@ -12,49 +11,28 @@
 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)
+depends=('python-protobuf' 'python-cryptography' 'python-axolotl-curve25519')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(https://github.com/tgalal/python-axolotl/archive/${pkgver}/${pkgname}-${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
-  )
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
 }
 
 check() {
   msg2 'Testing python...'
-  (cd ${pkgbase}-${pkgver}
-    py.test
-  )
-  msg2 'Testing python2...'
-  (cd ${pkgbase}-${pkgver}-py2
-    py.test2
-  )
+  cd ${pkgbase}-${pkgver}
+  py.test
 }
 
-package_python-axolotl() {
-  depends=('python-protobuf' 'python-cryptography' 'python-axolotl-curve25519')
+package() {
   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