[arch-commits] Commit in python-xlrd/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Oct 3 18:47:27 UTC 2019
Date: Thursday, October 3, 2019 @ 18:47:26
Author: aginiewicz
Revision: 512549
upgpkg: python-xlrd 1.2.0-2
python-xlrd: removed python2 support
Modified:
python-xlrd/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++-----------------------------
1 file changed, 5 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 18:45:32 UTC (rev 512548)
+++ PKGBUILD 2019-10-03 18:47:26 UTC (rev 512549)
@@ -4,49 +4,25 @@
# Contributor: Piotr Beling <qwak at stud.ics.p.lodz.pl>
# Contributor: Douglas Soares de Andrade <dsandrade at gmail.com>
-pkgbase=python-xlrd
-pkgname=('python2-xlrd' 'python-xlrd')
+pkgname='python-xlrd'
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Library for developers to extract data from Microsoft Excel (tm) spreadsheet files"
arch=('any')
url="http://www.python-excel.org/"
license=('BSD')
-makedepends=('python2-setuptools' 'python-setuptools')
+makedepends=('python-setuptools')
+depends=('python')
source=("https://github.com/python-excel/xlrd/archive/${pkgver}.tar.gz")
sha1sums=('95bb16f909d8cc58f2fbde056c0e5b11661acb12')
build() {
- cd "$srcdir"
- cp -a xlrd-${pkgver} xlrd-py2-${pkgver}
-
- msg "Building Python2"
- cd "$srcdir"/xlrd-py2-${pkgver}
- python2 setup.py build
-
- msg "Building Python3"
cd "$srcdir"/xlrd-${pkgver}
python setup.py build
}
-package_python2-xlrd() {
- depends=('python2')
-
- cd "$srcdir"/xlrd-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
- mv "$pkgdir/usr/bin/runxlrd"{,2}.py
-
- install -D -m644 "docs/licenses.rst" "$pkgdir/usr/share/licenses/$pkgname/licenses.rst"
-}
-
-package_python-xlrd() {
- depends=('python')
-
+package() {
cd "$srcdir"/xlrd-${pkgver}
-
python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
install -D -m644 "docs/licenses.rst" "$pkgdir/usr/share/licenses/$pkgname/licenses.rst"
}
-
More information about the arch-commits
mailing list