[arch-commits] Commit in python-xmltodict/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 16:01:27 UTC 2019


    Date: Friday, October 25, 2019 @ 16:01:27
  Author: felixonmars
Revision: 519327

archrelease: copy trunk to community-staging-any

Added:
  python-xmltodict/repos/community-staging-any/
  python-xmltodict/repos/community-staging-any/PKGBUILD
    (from rev 519326, python-xmltodict/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-xmltodict/repos/community-staging-any/PKGBUILD (from rev 519326, python-xmltodict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:01:27 UTC (rev 519327)
@@ -0,0 +1,34 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# 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')
+pkgver=0.12.0
+pkgrel=2
+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')
+source=("https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-$pkgver.tar.gz")
+md5sums=('ddb2bd078cef4f7e3021a578034ad941')
+
+package_python-xmltodict () {
+  pkgdesc+=" (py3)"
+  depends=('python')
+
+  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