Date: Monday, October 17, 2022 @ 19:20:48 Author: felixonmars Revision: 1329681
upgpkg: python-pyx 0.16-1 Modified: python-pyx/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-17 19:17:16 UTC (rev 1329680) +++ PKGBUILD 2022-10-17 19:20:48 UTC (rev 1329681) @@ -4,17 +4,37 @@ # Contributor: Stefan Husmann <[email protected]> pkgname=python-pyx -pkgver=0.15 -pkgrel=6 +pkgver=0.16 +pkgrel=1 pkgdesc='Python library for the creation of PostScript and PDF files' arch=('any') -url="http://pyx.sourceforge.net" +url="https://pyx-project.org/" license=('GPL') depends=('python' 'texlive-core') -source=("https://pypi.io/packages/source/p/pyx/PyX-$pkgver.tar.gz") -sha512sums=('c312b38b9f204b8a8832ab71da5be8c9afc417a095c8ccf242b3d3ebec63338a9d55abab4e548d1718abadf12ea7652cdad51731acdc8f6acd3d8608aa919919') +makedepends=('python-setuptools') +checkdepends=('ghostscript' 'python-pillow' 'python-testfixtures') +source=("https://github.com/pyx-project/pyx/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('2d85ffb4e2bbf88be0a2c77ff0865593794b15fe26424e590e6b2152691c425d27d11a7af5a2e6211774d01a9feaa4c3c00f922862ca5ca42e119f748b0300c2') +prepare() { + cd pyx-$pkgver/pyx/data + # https://github.com/pyx-project/pyx/issues/39 + sed -i 's|methods = local internal pykpathsea kpsewhich|methods = local internal recursivedir pykpathsea kpsewhich|' pyxrc + echo "recursivedir = /usr/share/texmf-dist/fonts/type1/public/amsfonts/" >> pyxrc +} + +build() { + cd pyx-$pkgver + python setup.py build +} + +check() { + cd pyx-$pkgver + # doctest disabled: sphinx_selective_exclude isn't available in our repos + make -C test unit functional svg +} + package() { - cd PyX-$pkgver + cd pyx-$pkgver python setup.py install -O1 --root="$pkgdir" }
