[arch-commits] Commit in python-defusedxml/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:59:36 UTC 2019
Date: Friday, October 25, 2019 @ 15:59:35
Author: foutrelis
Revision: 365659
archrelease: copy trunk to staging-any
Added:
python-defusedxml/repos/staging-any/
python-defusedxml/repos/staging-any/PKGBUILD
(from rev 365658, python-defusedxml/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-defusedxml/repos/staging-any/PKGBUILD (from rev 365658, python-defusedxml/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2019-10-25 15:59:35 UTC (rev 365659)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-defusedxml
+pkgname=("python-defusedxml" "python2-defusedxml")
+pkgver=0.6.0
+pkgrel=2
+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