PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Maintainer (Arch): Morten Linderud <foxboron@archlinux.org>
  2. # Contributor (Arch): Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
  3. # Contributor (Arch): William Rea <sillywilly@gmail.com>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. # Contributor: fauno <fauno@kiwwwi.com.ar>
  6. # Contributor: borgo <nomail>
  7. # Contributor: André Silva <emulatorman@hyperbola.info>
  8. _origname=reportlab
  9. pkgname=python-reportlab
  10. pkgver=3.6.6
  11. pkgrel=1
  12. pkgrel+=.parabola1
  13. pkgdesc="A proven industry-strength PDF generating solution"
  14. pkgdesc+=", without nonfree Adobe T1 fonts support"
  15. arch=('x86_64')
  16. arch+=('i686' 'armv7h')
  17. url="https://www.reportlab.com/"
  18. depends=('freetype2')
  19. depends=('python' 'python-pillow')
  20. makedepends=('freetype2' 'python-pillow' 'mercurial')
  21. license=('BSD')
  22. source=(https://files.pythonhosted.org/packages/source/${_origname::1}/${_origname}/${_origname}-${pkgver}.tar.gz
  23. 'free-fonts.patch')
  24. sha256sums=('dd1cdb62dc123f5859ca514eb639f70660bdc818c95fb0ee2370a175a0e20ce4'
  25. '7e31b2a2bde509d628cb7da9fec301d730d38ea8a8dc9956cdfc8da4ebeec370')
  26. prepare() {
  27. cd ${_origname}-${pkgver}
  28. # remove nonfree Adobe T1 fonts support
  29. patch -p1 -i ../free-fonts.patch
  30. # Parabola contains those fonts from the ttf-bitstream-vera package
  31. rm -fv src/reportlab/fonts/{bitstream-vera-license.txt,Vera*}
  32. }
  33. build() {
  34. cd ${_origname}-${pkgver}
  35. python setup.py build
  36. }
  37. check() {
  38. cd ${_origname}-${pkgver}
  39. python setup.py tests || true
  40. rm tests/_i_am_actually_a_*
  41. }
  42. package() {
  43. cd ${_origname}-${pkgver}
  44. python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  45. install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
  46. }