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

Felix Yan felixonmars at archlinux.org
Sat May 16 12:04:56 UTC 2020


    Date: Saturday, May 16, 2020 @ 12:04:56
  Author: felixonmars
Revision: 384429

archrelease: copy trunk to staging-any

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

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

Copied: python-defusedxml/repos/staging-any/PKGBUILD (from rev 384428, python-defusedxml/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 12:04:56 UTC (rev 384429)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-defusedxml
+pkgname=("python-defusedxml" "python2-defusedxml")
+pkgver=0.6.0
+pkgrel=4
+pkgdesc="XML bomb protection for Python stdlib modules"
+arch=('any')
+url='https://bitbucket.org/tiran/defusedxml'
+license=('Python')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/d/defusedxml/defusedxml-$pkgver.tar.gz")
+md5sums=('a59741f675c4cba649de40a99f732897')
+
+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