[arch-commits] Commit in python-xmltodict/repos (community-any community-any/PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon Nov 16 03:23:45 UTC 2015


    Date: Monday, November 16, 2015 @ 04:23:45
  Author: kkeen
Revision: 146902

archrelease: copy trunk to community-any

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

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

Copied: python-xmltodict/repos/community-any/PKGBUILD (from rev 146901, python-xmltodict/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-11-16 03:23:45 UTC (rev 146902)
@@ -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.9.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://pypi.python.org/packages/source/x/xmltodict/xmltodict-$pkgver.tar.gz)
+md5sums=('ab17e53214a8613ad87968e9674d75dd')
+
+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