PKGBUILDs/aur/python-matplotx/PKGBUILD
2022-01-01 08:12:57 -05:00

25 lines
941 B
Bash

# Maintainer: graysky <graysky AT archlinux DOT us>
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
pkgname=python-matplotx
pkgdesc="Extensions for Matplotlib"
pkgver=0.3.0
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=('2558d4e91db96488af688049f60b356ea7e3c411ee43550262f7a476d6718fe21bb0054e217e0591f8fce530f577ae0e305fa2cc3872ba1f48053e86d221f647')
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}"
}