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

Jelle van der Waa jelle at archlinux.org
Wed Jan 1 16:33:44 UTC 2020


    Date: Wednesday, January 1, 2020 @ 16:33:44
  Author: jelle
Revision: 545851

upgpkg: python-xmltodict 0.12.0-4

remove python2 module

Modified:
  python-xmltodict/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-01 16:30:04 UTC (rev 545850)
+++ PKGBUILD	2020-01-01 16:33:44 UTC (rev 545851)
@@ -2,33 +2,20 @@
 # Contributor: Lex Black <autumn-wind at web dot de>
 # Contributor: PiC0 <guill.p.linux at gmail.com>
 
-pkgbase=python-xmltodict
-pkgname=('python-xmltodict' 'python2-xmltodict')
+pkgname=python-xmltodict
 pkgver=0.12.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Python module that makes working with XML feel like working with JSON"
 url="https://github.com/martinblech/xmltodict"
 arch=('any')
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-$pkgver.tar.gz")
 md5sums=('ddb2bd078cef4f7e3021a578034ad941')
 
-package_python-xmltodict () {
-  pkgdesc+=" (py3)"
-  depends=('python')
-
+package() {
   cd "$srcdir/xmltodict-$pkgver"
   python setup.py install --root="${pkgdir}"
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-xmltodict () {
-  pkgdesc+=" (py2)"
-  depends=('python2')
-
-  cd "$srcdir/xmltodict-$pkgver"
-  sed -i 's/env python$/&2/' xmltodict.py
-  python2 setup.py install --root="${pkgdir}"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}



More information about the arch-commits mailing list