2021-12-03 20:01:18 +00:00
|
|
|
# Maintainer: graysky <graysky AT archlinux DOT us>
|
|
|
|
# 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-02-13 19:00:27 +00:00
|
|
|
pkgver=0.3.6
|
2021-12-03 20:01:18 +00:00
|
|
|
pkgrel=1
|
|
|
|
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)
|
|
|
|
makedepends=(python-build python-flit-core python-install)
|
2022-01-12 11:17:35 +00:00
|
|
|
optdepends=('python-networkx: for creation of graphs'
|
|
|
|
'python-pypng: for iterator support')
|
2022-01-30 17:59:13 +00:00
|
|
|
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
|
2022-02-13 19:00:27 +00:00
|
|
|
sha512sums=('3ae45f52e448ae7df702b3d1611e72845766a34b7a74578ee0ad6339eedc37f0dd021a2a23ecb17c362aa8c1df187125c9d86281e49974aa9c7be497ff602f52')
|
2021-12-03 20:01:18 +00:00
|
|
|
|
|
|
|
build() {
|
2022-01-30 17:59:13 +00:00
|
|
|
cd "${_base}-${pkgver}"
|
|
|
|
export PYTHONHASHSEED=0
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
2021-12-03 20:01:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-01-30 17:59:13 +00:00
|
|
|
cd "${_base}-${pkgver}"
|
|
|
|
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m install --optimize=1 --destdir="${pkgdir}" dist/*.whl
|
|
|
|
|
|
|
|
# https://github.com/FFY00/python-install/pull/6
|
|
|
|
chmod +x ${pkgdir}/usr/bin/*
|
|
|
|
|
|
|
|
# Symlink license file
|
|
|
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
|
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
ln -s "${site_packages}/${_base}-$pkgver.dist-info/LICENSE" \
|
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2021-12-03 20:01:18 +00:00
|
|
|
}
|