[arch-commits] Commit in python-xlwt/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Oct 3 20:45:38 UTC 2019
Date: Thursday, October 3, 2019 @ 20:45:38
Author: aginiewicz
Revision: 512568
upgpkg: python-xlwt 1.3.0-3
python-xlwt: drop python2 support
Modified:
python-xlwt/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++-----------------------------
1 file changed, 6 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 20:43:17 UTC (rev 512567)
+++ PKGBUILD 2019-10-03 20:45:38 UTC (rev 512568)
@@ -2,48 +2,25 @@
# Contributor: Aaron DeVore <aaron.devore at gmail.com>
# Contributor: David Moore <davidm at sjsoft.com>
-pkgbase=python-xlwt
-pkgname=('python2-xlwt' 'python-xlwt')
+pkgname='python-xlwt'
pkgver=1.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files"
arch=('any')
url="http://www.python-excel.org/"
license=('BSD')
-makedepends=('python2-setuptools' 'python-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://github.com/python-excel/xlwt/archive/${pkgver}.tar.gz")
-md5sums=('fb4226ac8f1eb306ed6b74eac075d28f')
+sha256sums=('1961682c6a3cedb44e6a96ff6ed099d80af8da9a669dbbbc1d1959e8398122d6')
build() {
- cd "$srcdir"
- cp -a xlwt-${pkgver} xlwt-py2-${pkgver}
-
- msg "Building Python2"
- cd "$srcdir"/xlwt-py2-${pkgver}
- python2 setup.py build
-
- msg "Building Python3"
cd "$srcdir"/xlwt-${pkgver}
python setup.py build
}
-package_python2-xlwt() {
- depends=('python2')
-
- cd "$srcdir"/xlwt-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
-}
-
-package_python-xlwt() {
- depends=('python')
-
+package() {
cd "$srcdir"/xlwt-${pkgver}
-
python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
}
-
More information about the arch-commits
mailing list