upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-reportlab / trunk / PKGBUILD
blob4fdf1602a8498bcd64e1e92eaa4872d3ea7edce0
1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
3 # Contributor: William Rea <sillywilly@gmail.com>
5 _origname=reportlab
6 pkgname=python-reportlab
7 pkgver=3.6.12
8 pkgrel=3
9 pkgdesc="A proven industry-strength PDF generating solution"
10 arch=('x86_64')
11 url="https://www.reportlab.com/"
12 depends=('freetype2')
13 depends=('python' 'python-pillow')
14 makedepends=('freetype2' 'python-pillow' 'mercurial')
15 license=('BSD')
16 source=(https://files.pythonhosted.org/packages/source/${_origname::1}/${_origname}/${_origname}-${pkgver}.tar.gz)
17 sha256sums=('b13cebf4e397bba14542bcd023338b6ff2c151a3a12aabca89eecbf972cb361a')
19 build() {
20     cd ${_origname}-${pkgver}
21     python setup.py build
24 check() {
25     cd ${_origname}-${pkgver}
26     python -m unittest discover -vs tests || true
27     rm tests/_i_am_actually_a_*
30 package() {
31     cd ${_origname}-${pkgver}
32     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
33     install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt