summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6483231bdf72e939f7b27ffba81fe306d6b27388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Contributor: HÃ¥vard Pettersson <mail@haavard.me>
_base=matplotlib_label_lines
pkgname=python-${_base//_/-}
pkgver=0.6.0
pkgrel=1
pkgdesc="Label lines in matplotlib"
url="https://github.com/cphyc/${_base//_/-}"
arch=(any)
license=(MIT)
depends=(python-matplotlib python-more-itertools)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
sha512sums=('af16901de94daa31c13d64479ef948cb0392b09ac7bc133f407a04986b620958889855ea0cf363f652ef1a1d1fb1eac7e5a7364ca45c55521e22868c09b635c1')

build() {
  cd ${_base}-${pkgver}
  python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
  cd ${_base}-${pkgver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}