2015-09-16 15:52:58 +08:00
|
|
|
# Contribution from Arch:
|
|
|
|
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
|
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
|
|
|
|
pkgbase=python-reportlab
|
|
|
|
pkgname=('python2-reportlab' 'python3-reportlab')
|
|
|
|
_origname=reportlab
|
2017-10-27 06:00:45 +08:00
|
|
|
pkgver=3.4.0
|
2015-09-16 15:52:58 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A proven industry-strength PDF generating solution"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.reportlab.org/rl_toolkit.html"
|
|
|
|
depends=('freetype2')
|
|
|
|
makedepends=('python3' 'python2')
|
|
|
|
checkdepends=('python2-pillow' 'python3-pillow')
|
|
|
|
conflicts=('python-reportlab<=2.5-1')
|
|
|
|
replaces=('python-reportlab<=2.5-1')
|
|
|
|
license=('CUSTOM')
|
2017-10-27 06:00:45 +08:00
|
|
|
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pyca/service_identity/archive/$pkgver.tar.gz")md5sums=('3f2522cf3b69cd84426c216619bbff53')
|
2015-09-16 15:52:58 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}
|
|
|
|
cp -rf ${_origname}-${pkgver} "${_origname}2-${pkgver}"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-reportlab() {
|
|
|
|
depends=('python2')
|
|
|
|
cd "${srcdir}/${_origname}2-${pkgver}"
|
|
|
|
python2 setup.py install --root=${pkgdir} --optimize=1
|
|
|
|
install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python3-reportlab() {
|
|
|
|
depends=('python3')
|
|
|
|
cd "${srcdir}/${_origname}-${pkgver}"
|
|
|
|
python3 setup.py install --root=${pkgdir} --optimize=1
|
|
|
|
install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd ${srcdir}/${_origname}-${pkgver}
|
|
|
|
python2 setup.py tests
|
|
|
|
python3 setup.py tests
|
|
|
|
}
|