2023-10-21 11:59:27 +00:00
|
|
|
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
2021-12-03 20:01:18 +00:00
|
|
|
# Contributer: Carlos Aznarán <caznaranl@uni.pe>
|
|
|
|
|
2022-01-30 17:59:13 +00:00
|
|
|
# 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"
|
2022-08-23 08:29:34 +00:00
|
|
|
pkgver=0.3.10
|
2023-12-06 21:12:16 +00:00
|
|
|
pkgrel=2
|
2021-12-03 20:01:18 +00:00
|
|
|
arch=(any)
|
2022-01-30 17:59:13 +00:00
|
|
|
url="https://github.com/nschloe/${_base}"
|
2021-12-03 20:01:18 +00:00
|
|
|
license=(MIT)
|
2022-01-30 17:59:13 +00:00
|
|
|
depends=(python-matplotlib)
|
2023-12-06 21:12:16 +00:00
|
|
|
makedepends=(python-build python-installer python-setuptools python-wheel)
|
2022-01-12 11:17:35 +00:00
|
|
|
optdepends=('python-networkx: for creation of graphs'
|
|
|
|
'python-pypng: for iterator support')
|
2022-08-23 08:29:34 +00:00
|
|
|
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
|
|
|
|
sha512sums=('33eea6fe855915b45c490c02ce4fb45fecdae9e090e9ff1438620d4f898143e0dd27341493124a364d30aca1a39c2da9d3547555a57dcc45dd72144897c825b5')
|
2021-12-03 20:01:18 +00:00
|
|
|
|
|
|
|
build() {
|
2022-08-23 08:29:34 +00:00
|
|
|
cd ${_base}-${pkgver}
|
2023-12-06 21:12:16 +00:00
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
2021-12-03 20:01:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-08-23 08:29:34 +00:00
|
|
|
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}"
|
2021-12-03 20:01:18 +00:00
|
|
|
}
|