mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
aur/python-matplotx to 0.3.2-1
This commit is contained in:
parent
b633c24693
commit
ae5f0579c9
1 changed files with 26 additions and 13 deletions
|
@ -1,27 +1,40 @@
|
|||
# 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
|
||||
# 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.2
|
||||
pkgrel=1
|
||||
arch=(any)
|
||||
url="https://github.com/nschloe/${_base}"
|
||||
license=(MIT)
|
||||
depends=(python-networkx)
|
||||
makedepends=(python-setuptools)
|
||||
depends=(python-matplotlib)
|
||||
makedepends=(python-build python-flit-core python-install)
|
||||
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')
|
||||
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
|
||||
sha512sums=('fb34db28157bbd975a46960a76b718a7a4d1ee1df5dbfed653f07a9a483ee77f67dae71f835285438501c7f0a475d48c284ead3e911dc1ef1811acc399c01046')
|
||||
|
||||
build() {
|
||||
cd "${pkgname/python-}-${pkgver}"
|
||||
python -c "from setuptools import setup; setup();" build
|
||||
cd "${_base}-${pkgver}"
|
||||
export PYTHONHASHSEED=0
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
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}"
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue