[arch-commits] Commit in python-defusedxml/repos (staging-any staging-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Sep 19 15:34:59 UTC 2015


    Date: Saturday, September 19, 2015 @ 17:34:59
  Author: fyan
Revision: 246642

archrelease: copy trunk to staging-any

Added:
  python-defusedxml/repos/staging-any/
  python-defusedxml/repos/staging-any/PKGBUILD
    (from rev 246641, python-defusedxml/trunk/PKGBUILD)

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

Copied: python-defusedxml/repos/staging-any/PKGBUILD (from rev 246641, python-defusedxml/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-19 15:34:59 UTC (rev 246642)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-defusedxml
+pkgname=("python-defusedxml" "python2-defusedxml")
+pkgver=0.4.1
+pkgrel=2
+pkgdesc="XML bomb protection for Python stdlib modules"
+arch=('any')
+url='https://bitbucket.org/tiran/defusedxml'
+license=('Python')
+makedepends=('python' 'python2')
+source=("https://pypi.python.org/packages/source/d/defusedxml/defusedxml-0.4.1.tar.gz")
+md5sums=('230a5eff64f878b392478e30376d673a')
+
+prepare() {
+  cp -a "defusedxml-$pkgver"{,-py2}
+}
+
+package_python-defusedxml() {
+  depends=('python')
+
+  cd defusedxml-$pkgver
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-defusedxml() {
+  depends=('python2')
+
+  cd defusedxml-$pkgver-py2
+  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