diff --git a/aur/python-matplotx/PKGBUILD b/aur/python-matplotx/PKGBUILD new file mode 100644 index 000000000..42612a048 --- /dev/null +++ b/aur/python-matplotx/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: graysky +# Contributer: Carlos Aznarán + +pkgname=python-matplotx +pkgdesc="Extensions for Matplotlib" +pkgver=0.2.3 +pkgrel=1 +arch=(any) +license=(MIT) +depends=(python-networkx) +makedepends=(python-setuptools) +source=("${pkgname/python-}-$pkgver.tar.gz::https://github.com/nschloe/matplotx/archive/v${pkgver}.tar.gz") +sha512sums=('e4d43fea74ca1a9e27d477c641f2b7310d6acafdff7f57c9a5feeff4f8a6b78e9d1a537f1f9c0650b99347ed5bc4bad4d952c3b62f6f8d89bb0e597f16c572ed') + +build() { + cd "${pkgname/python-}-${pkgver}" + python -c "from setuptools import setup; setup();" build +} + +package() { + cd "${pkgname/python-}-${pkgver}" + export PYTHONHASHSEED=0 + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -c "from setuptools import setup; setup();" install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +}