[arch-commits] Commit in python-defusedxml/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Mar 30 14:23:42 UTC 2021
Date: Tuesday, March 30, 2021 @ 14:23:42
Author: felixonmars
Revision: 411278
archrelease: copy trunk to extra-any
Added:
python-defusedxml/repos/extra-any/PKGBUILD
(from rev 411277, python-defusedxml/trunk/PKGBUILD)
Deleted:
python-defusedxml/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 52 +++++++++++++++++++---------------------------------
1 file changed, 19 insertions(+), 33 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-30 14:23:24 UTC (rev 411277)
+++ PKGBUILD 2021-03-30 14:23:42 UTC (rev 411278)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-defusedxml
-pkgname=("python-defusedxml" "python2-defusedxml")
-pkgver=0.7.1
-pkgrel=1
-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")
-sha512sums=('93c1e077b22a278011497f3b3f4409b5259e0077768caa121e0f078f80f39c082f3870eaaf4bad5166fe8c3b2d169ccdea62c2840ba6969240a8371cef34c4d5')
-
-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"
-}
Copied: python-defusedxml/repos/extra-any/PKGBUILD (from rev 411277, python-defusedxml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-03-30 14:23:42 UTC (rev 411278)
@@ -0,0 +1,19 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-defusedxml
+pkgver=0.7.1
+pkgrel=2
+pkgdesc="XML bomb protection for Python stdlib modules"
+arch=('any')
+url='https://bitbucket.org/tiran/defusedxml'
+license=('Python')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/d/defusedxml/defusedxml-$pkgver.tar.gz")
+sha512sums=('93c1e077b22a278011497f3b3f4409b5259e0077768caa121e0f078f80f39c082f3870eaaf4bad5166fe8c3b2d169ccdea62c2840ba6969240a8371cef34c4d5')
+
+package() {
+ cd defusedxml-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list