summaryrefslogtreecommitdiff
path: root/libre/python-reportlab/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/python-reportlab/PKGBUILD')
-rw-r--r--libre/python-reportlab/PKGBUILD39
1 files changed, 15 insertions, 24 deletions
diff --git a/libre/python-reportlab/PKGBUILD b/libre/python-reportlab/PKGBUILD
index 93c1c4072..3cec4f091 100644
--- a/libre/python-reportlab/PKGBUILD
+++ b/libre/python-reportlab/PKGBUILD
@@ -7,26 +7,26 @@
# Contributor: André Silva <emulatorman@hyperbola.info>
_origname=reportlab
-pkgbase=python-reportlab
-pkgname=(python2-reportlab python-reportlab)
-pkgver=3.5.12
-pkgrel=1
-pkgrel+=.par1
+pkgname=python-reportlab
+pkgver=3.5.32
+pkgrel=3
+pkgrel+=.parabola1
pkgdesc="A proven industry-strength PDF generating solution"
pkgdesc+=", without nonfree Adobe T1 fonts support"
arch=('x86_64')
arch+=('i686' 'armv7h')
url="https://bitbucket.org/rptlab/reportlab"
depends=('freetype2')
-makedepends+=('python' 'python2' 'freetype2' 'python2-pillow' 'python-pillow' 'mercurial')
-license=('custom')
+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
'free-fonts.patch')
-sha256sums=('7e10261065d0f926d9d83fd1f2edb8bec466f3c60b3e927ef40e2262805c069d'
+sha256sums=('83ef44936ef4e9c432d62bc2b72ec8d772b87af319d123e827a72e9b6884c851'
'7e31b2a2bde509d628cb7da9fec301d730d38ea8a8dc9956cdfc8da4ebeec370')
prepare() {
- cd "$srcdir/${_origname}-${pkgver}"
+ cd ${_origname}-${pkgver}
# remove nonfree Adobe T1 fonts support
patch -p1 -i ../free-fonts.patch
@@ -35,22 +35,13 @@ prepare() {
rm -fv src/reportlab/fonts/{bitstream-vera-license.txt,Vera*}
}
-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() {
+ cd ${_origname}-${pkgver}
+ python 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')
-
+check() {
cd ${_origname}-${pkgver}
- python3 setup.py install --root=$pkgdir --optimize=1
- install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
+ python setup.py tests
}