PKGBUILDs/aur/python-matplotx/PKGBUILD

28 lines
1 KiB
Bash
Raw Normal View History

# Maintainer: graysky <graysky AT archlinux DOT us>
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
pkgname=python-matplotx
pkgdesc="Extensions for Matplotlib"
2022-01-12 11:17:35 +00:00
pkgver=0.3.1
pkgrel=1
arch=(any)
license=(MIT)
depends=(python-networkx)
makedepends=(python-setuptools)
2022-01-12 11:17:35 +00:00
optdepends=('python-networkx: for creation of graphs'
'python-pypng: for iterator support')
source=("${pkgname/python-}-$pkgver.tar.gz::https://github.com/nschloe/matplotx/archive/v${pkgver}.tar.gz")
2022-01-12 11:17:35 +00:00
sha512sums=('174f67eebe5d1eabfc875801998ca05a32b56d98ef4e6e8c2df2ca2eee0bcdbef67437b078d8c5b207eb5411bfc1f5e7c490abfd2bf94fff70d0ec7f08fc3830')
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}"
}