summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00878441cbbf02fb68478ffeda92e15211a645d6 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pkgname=mplcairo
pkgver=0.6
pkgrel=1
pkgdesc="A (new) cairo backend for Matplotlib."
arch=(x86_64)
url=https://github.com/matplotlib/mplcairo
license=('MIT')
depends=(
python-matplotlib
python-cairo
cairo
)
makedepends=(
python-build
python-installer
python-wheel
python-setuptools
pybind11
)

#source=(git+https://github.com/matplotlib/mplcairo.git#tag=v${pkgver})
#sha256sums=('87')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/matplotlib/mplcairo/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('27ef1755b2e4872b4966524b54c227ac24faa000273193c21318b8c123e49ce4')

prepare(){
  cd mplcairo-${pkgver}
}

build() {
  cd mplcairo-${pkgver}
  python -m build --wheel --no-isolation
}

package() {
  cd mplcairo-${pkgver}
  python -m installer --destdir="$pkgdir" dist/*.whl
}