12345678910111213141516171819202122232425262728293031323334353637 |
- # Template file for 'python-reportlab'
- pkgname=python-reportlab
- version=3.5.42
- revision=2
- wrksrc="reportlab-${version}"
- build_style=python-module
- hostmakedepends="python-setuptools python3-setuptools freetype-devel"
- makedepends="python-devel python3-devel freetype-devel libart-devel"
- depends="python-Pillow"
- short_desc="Python2 library for generating PDFs and graphics"
- maintainer="Alessio Sergi <al3hex@gmail.com>"
- license="BSD-3-Clause"
- homepage="https://www.reportlab.com/"
- distfiles="${PYPI_SITE}/r/reportlab/reportlab-${version}.tar.gz"
- checksum=9c21f202697a6cea57b9d716288fc919d99cbabeb30222eebfc7ff77eac32744
- # Liberation
- # Some code has been taken from:
- # https://git.parabola.nu/abslibre.git/tree/libre/python-reportlab/PKGBUILD
- post_patch() {
- # Parabola contains those fonts from the ttf-bitstream-vera package
- rm -fv src/reportlab/fonts/{bitstream-vera-license.txt,Vera*}
- }
- post_install() {
- vlicense LICENSE.txt
- }
- python3-reportlab_package() {
- depends="python3-Pillow"
- short_desc="${short_desc/Python2/Python3}"
- pkg_install() {
- vmove usr/lib/python3*
- vlicense LICENSE.txt
- }
- }
|