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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 17:47:16 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:47:15
  Author: bpiotrowski
Revision: 202145

archrelease: copy trunk to community-staging-any

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

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

Copied: python-xmltodict/repos/community-staging-any/PKGBUILD (from rev 202144, python-xmltodict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:47:15 UTC (rev 202145)
@@ -0,0 +1,35 @@
+# $Id$
+# 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.10.2
+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=('1275cbb2e66c354eb2b6a6bc946f3fa1')
+
+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