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

Johannes Löthberg demize at archlinux.org
Tue Dec 17 20:21:51 UTC 2019


    Date: Tuesday, December 17, 2019 @ 20:21:51
  Author: demize
Revision: 537959

Drop python2-canonicaljson

Modified:
  python-canonicaljson/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++-------------------------------
 1 file changed, 6 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-17 20:17:48 UTC (rev 537958)
+++ PKGBUILD	2019-12-17 20:21:51 UTC (rev 537959)
@@ -1,8 +1,7 @@
 # Maintainer: Johannes Löthberg <johannes at kyriasis.com>
 # Contributor: Ivan Shapovalov <intelfx at intelfx.name>
 
-pkgbase=python-canonicaljson
-pkgname=(python-canonicaljson python2-canonicaljson)
+pkgname=python-canonicaljson
 pkgver=1.1.4
 pkgrel=4
 
@@ -11,50 +10,26 @@
 arch=('any')
 license=('Apache')
 
-makedepends=('python-setuptools'
-             'python-simplejson'
-             'python-frozendict'
+depends=('python' 'python-simplejson' 'python-frozendict')
+makedepends=('python-setuptools')
 
-             'python2-setuptools'
-             'python2-simplejson'
-             'python2-frozendict')
-
 source=("python-canonicaljson-$pkgver.tar.gz::https://github.com/matrix-org/python-canonicaljson/archive/v${pkgver}.tar.gz")
 
 md5sums=('3f29b4eab8219076532ab34315843634')
 
-prepare() {
-	cp -a python-canonicaljson-$pkgver{,-python2}
-}
-
 build() {
-	cd "$srcdir"/python-canonicaljson-$pkgver
+	cd python-canonicaljson-$pkgver
 	python setup.py build
-
-	cd "$srcdir"/python-canonicaljson-$pkgver-python2
-	python2 setup.py build
 }
 
 check() {
-	cd "$srcdir"/python-canonicaljson-$pkgver
+	cd python-canonicaljson-$pkgver
 	python setup.py test
-
-	cd "$srcdir"/python-canonicaljson-$pkgver-python2
-	python2 setup.py test
 }
 
-package_python-canonicaljson() {
-	depends=('python' 'python-simplejson' 'python-frozendict')
-
+package() {
 	cd python-canonicaljson-$pkgver
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
 
-package_python2-canonicaljson() {
-	depends=('python2' 'python2-simplejson' 'python2-frozendict')
-
-	cd python-canonicaljson-$pkgver-python2
-	python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
 # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :


More information about the arch-commits mailing list