[arch-commits] Commit in python-et-xmlfile/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Oct 3 18:30:52 UTC 2019
Date: Thursday, October 3, 2019 @ 18:30:51
Author: aginiewicz
Revision: 512534
upgpkg: python-et-xmlfile 1.0.1-5
python-et-xmlfile: dropped python2 support
Modified:
python-et-xmlfile/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++--------------------------------------
1 file changed, 7 insertions(+), 38 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 18:27:07 UTC (rev 512533)
+++ PKGBUILD 2019-10-03 18:30:51 UTC (rev 512534)
@@ -1,57 +1,26 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-pkgbase=python-et-xmlfile
-pkgname=('python2-et-xmlfile' 'python-et-xmlfile')
+pkgname='python-et-xmlfile'
pkgver=1.0.1
-pkgrel=4
+pkgrel=5
pkgdesc="A low memory library for creating large XML files."
arch=('any')
url="https://et-xmlfile.readthedocs.io/"
license=('MIT')
-makedepends=('python2-setuptools' 'python-setuptools' 'python-lxml' 'python2-lxml')
+depends=('python-lxml')
+makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/source/e/et_xmlfile/et_xmlfile-${pkgver}.tar.gz"
"LICENCE")
-sha1sums=('a3e502098bcb7fff22857882d80813c1b6db7608'
- '8b67150a9c68fa385ebe71453141020860a72ff4')
+sha256sums=('614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b'
+ '661ec7386be2767e08c469d039de4918c91b5223b6fd8b19961377977bc0652d')
-prepare() {
- cd "$srcdir"
- cp -a et_xmlfile-${pkgver} et_xmlfile-py2-${pkgver}
- cd et_xmlfile-py2-${pkgver}
-
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
-
build() {
- # "Building Python2"
- cd "$srcdir"/et_xmlfile-py2-${pkgver}
- python2 setup.py build
-
- # "Building Python3"
cd "$srcdir"/et_xmlfile-${pkgver}
python setup.py build
}
-package_python2-et-xmlfile() {
- depends=('python2' 'python2-lxml')
-
- cd "$srcdir"/et_xmlfile-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
-}
-
-package_python-et-xmlfile() {
- depends=('python' 'python-lxml')
-
+package() {
cd "$srcdir"/et_xmlfile-${pkgver}
-
python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
}
-
More information about the arch-commits
mailing list