summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d2baf16d2ee89213008228003cc619343a0b1c2 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>

pkgname=python-matplotlib-pgfutils
pkgdesc="Utilities for generating PGF figures from Matplotlib"
pkgver=2.0.1
pkgrel=1
url="https://matplotlib-pgfutils.readthedocs.io/"
license=('BSD-3-Clause')
arch=('any')

depends=(
  'python-matplotlib'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-setuptools-scm'
)
checkdepends=(
  'python-pytest'
  'python-pytest-cov'
  'texlive-fontsrecommended'
  'texlive-latexrecommended'
  'texlive-pictures'
  'texlive-xetex'
)

source=(
  "git+https://github.com/bcbnz/matplotlib-pgfutils.git#tag=v${pkgver}"
)
sha256sums=(
  '693911ba651bdf491a9dd8be69ec553f46cf022d113de6b2a24d9b3a3b1f451e'
)

build() {
  cd matplotlib-pgfutils
  python -m build --no-isolation --wheel
}

check() {
  cd matplotlib-pgfutils
  pytest
}

package() {
  cd matplotlib-pgfutils
  python -m installer --destdir="$pkgdir" "dist/matplotlib_pgfutils-$pkgver"-*.whl
  install -Dm644 LICENSES/BSD-3-Clause.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}