From e249cc0e11adbdee9f6e8472155f71a158f2bf93 Mon Sep 17 00:00:00 2001 From: graysky Date: Fri, 3 Dec 2021 15:01:18 -0500 Subject: [PATCH] add aur/python-matplotx Needed dep for aur/stressberry --- aur/python-matplotx/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 aur/python-matplotx/PKGBUILD 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}" +}