PKGBUILDs/aur/python-matplotx/PKGBUILD
2021-12-12 06:36:58 -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.2.5
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=('fc7f89e0b2fbf1557dbd344d1f86de2866b729a86c096e8c07de45231523a783a321ed20b53c26bf65fcc95c3cfbdb3f10759577f8b65992cb625ab7d4a5b5e4')
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}"
}