psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

38 lines
991 B
Plaintext

# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-pygal
_pkgname=pygal
pkgver=3.0.0
pkgrel=2
pkgdesc="dynamic SVG charting library written in Python"
options="!check" # Requires unpackaged dependencies
url="https://www.pygal.org/en/stable/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pygal/pygal-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-pygal" # Backwards compatibility
provides="py-pygal=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
default_prepare
# Remove from setup_requires as we don't run tests
sed -e "/'pytest-runner'/d" \
-i setup.py
}
build() {
python3 setup.py build
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
51ad847539ef8c0a092878c51c0c7f0aea4f7f1f30d8b9487997e4d9f4ad50d1af9d51cbdfebea0144d7675539c5af921994dea412ced691a0d3bb6beae1f86d pygal-3.0.0.tar.gz
"