mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
27 lines
1 KiB
Bash
27 lines
1 KiB
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.1
|
|
pkgrel=1
|
|
arch=(any)
|
|
license=(MIT)
|
|
depends=(python-networkx)
|
|
makedepends=(python-setuptools)
|
|
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")
|
|
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}"
|
|
}
|