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

Jelle van der Waa jelle at archlinux.org
Tue Dec 17 10:10:03 UTC 2019


    Date: Tuesday, December 17, 2019 @ 10:10:03
  Author: jelle
Revision: 537916

upgpkg: python-anyjson 0.3.3-12

Remove python2

Modified:
  python-anyjson/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-17 10:00:55 UTC (rev 537915)
+++ PKGBUILD	2019-12-17 10:10:03 UTC (rev 537916)
@@ -3,36 +3,26 @@
 # Contributor: p2k <Patrick.Schneider at uni-ulm.de>
 
 _pypiname=anyjson
-pkgbase=python-$_pypiname
-pkgname=("python-$_pypiname" "python2-$_pypiname")
+pkgname=python-$_pypiname
 pkgver=0.3.3
-pkgrel=11
+pkgrel=12
 pkgdesc="Wraps the best available JSON implementation available in a common interface"
 arch=(any)
 url="https://pypi.python.org/pypi/$_pypiname"
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/a/$_pypiname/$_pypiname-${pkgver}.tar.gz")
 md5sums=('2ea28d6ec311aeeebaf993cb3008b27c')
 
-prepare() {
-  cp -a "$_pypiname-${pkgver}" "python2-$_pypiname-${pkgver}"
+build() {
+  cd "$_pypiname-${pkgver}"
+  python setup.py build
 }
 
-package_python-anyjson() {
-  depends=('python')
-
+package() {
   cd "$_pypiname-${pkgver}"
   python setup.py install --root="${pkgdir}/" --optimize=1
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-anyjson() {
-  depends=('python2')
-
-  cd "python2-$_pypiname-${pkgver}"
-  python2 setup.py install --root="${pkgdir}/" --optimize=1
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}



More information about the arch-commits mailing list