2021-12-03 20:01:18 +00:00
|
|
|
# Maintainer: graysky <graysky AT archlinux DOT us>
|
|
|
|
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
|
|
|
|
|
|
|
|
pkgname=python-matplotx
|
|
|
|
pkgdesc="Extensions for Matplotlib"
|
2022-01-01 13:12:54 +00:00
|
|
|
pkgver=0.3.0
|
2021-12-03 20:01:18 +00:00
|
|
|
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")
|
2022-01-01 13:12:54 +00:00
|
|
|
sha512sums=('2558d4e91db96488af688049f60b356ea7e3c411ee43550262f7a476d6718fe21bb0054e217e0591f8fce530f577ae0e305fa2cc3872ba1f48053e86d221f647')
|
2021-12-03 20:01:18 +00:00
|
|
|
|
|
|
|
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}"
|
|
|
|
}
|