[arch-commits] Commit in python-reportlab/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Jan 12 11:53:46 UTC 2020
Date: Sunday, January 12, 2020 @ 11:53:46
Author: jelle
Revision: 552182
upgpkg: python-reportlab 3.5.32-3
removep python2-reportlab
Modified:
python-reportlab/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++---------------------
1 file changed, 6 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-12 09:16:44 UTC (rev 552181)
+++ PKGBUILD 2020-01-12 11:53:46 UTC (rev 552182)
@@ -3,41 +3,26 @@
# Contributor: William Rea <sillywilly at gmail.com>
_origname=reportlab
-pkgbase=python-reportlab
-pkgname=(python2-reportlab python-reportlab)
+pkgname=python-reportlab
pkgver=3.5.32
-pkgrel=2
+pkgrel=3
pkgdesc="A proven industry-strength PDF generating solution"
arch=('x86_64')
url="https://bitbucket.org/rptlab/reportlab"
depends=('freetype2')
-makedepends+=('python' 'python2' 'freetype2' 'python2-pillow' 'python-pillow' 'mercurial')
+depends=('python' 'python-pip' 'python-pillow')
+makedepends=('freetype2' 'python-pillow' 'mercurial')
license=('BSD')
source=(https://files.pythonhosted.org/packages/source/${_origname::1}/${_origname}/${_origname}-${pkgver}.tar.gz)
sha256sums=('83ef44936ef4e9c432d62bc2b72ec8d772b87af319d123e827a72e9b6884c851')
-build() {
- cp -rf ${_origname}-${pkgver} "${_origname}2"
-}
-
-package_python2-reportlab() {
- depends+=('python2' 'python2-pip' 'python2-pillow')
-
- cd ${_origname}2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
-
-package_python-reportlab() {
- depends+=('python3' 'python-pip' 'python-pillow')
-
+package() {
cd ${_origname}-${pkgver}
- python3 setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
}
check() {
cd ${_origname}-${pkgver}
- python2 setup.py tests
python setup.py tests
}
More information about the arch-commits
mailing list