diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2020-01-21 01:52:05 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2020-01-21 01:52:05 -0500 |
commit | f980460a4eb47a5d874cf11bdaba8bd013b3dde3 (patch) | |
tree | ab783701ff6b85451559982311b4bfa7a0af46ec /libre/python-reportlab/PKGBUILD | |
parent | f824731400c8693e2adec889b755c2c72229929e (diff) | |
download | abslibre-f980460a4eb47a5d874cf11bdaba8bd013b3dde3.tar.gz abslibre-f980460a4eb47a5d874cf11bdaba8bd013b3dde3.tar.bz2 abslibre-f980460a4eb47a5d874cf11bdaba8bd013b3dde3.zip |
python-reportlab-3.5.32-3.parabola1: updating version
Diffstat (limited to 'libre/python-reportlab/PKGBUILD')
-rw-r--r-- | libre/python-reportlab/PKGBUILD | 39 |
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 } |