mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
|
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
|
|
|
|
# ALARM:
|
|
# - remove check function and check deps as most do not exist for us
|
|
|
|
_base=matplotx
|
|
pkgname=python-${_base}
|
|
pkgdesc="Useful styles and extensions for Matplotlib"
|
|
pkgver=0.3.10
|
|
pkgrel=1
|
|
arch=(any)
|
|
url="https://github.com/nschloe/${_base}"
|
|
license=(MIT)
|
|
depends=(python-matplotlib)
|
|
makedepends=(python-setuptools)
|
|
optdepends=('python-networkx: for creation of graphs'
|
|
'python-pypng: for iterator support')
|
|
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
|
|
sha512sums=('33eea6fe855915b45c490c02ce4fb45fecdae9e090e9ff1438620d4f898143e0dd27341493124a364d30aca1a39c2da9d3547555a57dcc45dd72144897c825b5')
|
|
|
|
build() {
|
|
cd ${_base}-${pkgver}
|
|
python -c "from setuptools import setup; setup();" build
|
|
}
|
|
|
|
package() {
|
|
cd ${_base}-${pkgver}
|
|
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}"
|
|
}
|