Skip to content
Snippets Groups Projects
Commit 6a0527be authored by Felix Yan's avatar Felix Yan
Browse files

upgpkg: 0.16-1

parent 28993e75
No related branches found
Tags 0.3.0-1
No related merge requests found
......@@ -4,17 +4,37 @@
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
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"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment