add aur/python-matplotx

Needed dep for aur/stressberry
This commit is contained in:
graysky 2021-12-03 15:01:18 -05:00
parent dab84fbe35
commit e249cc0e11

View file

@ -0,0 +1,25 @@
# Maintainer: graysky <graysky AT archlinux DOT us>
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
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}"
}