summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc3ef2862f731c11f1b1a70ff7cd3fd0794e90f8 (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
# Maintainer: nobodyinperson <nobodyinperson at posteo de>
_name=json2tex
pkgname="python-${_name}-git"
pkgver=1.0.0.r1.g5be43a7
pkgrel=1
pkgdesc="Convert JSON for usage in LaTeX"
arch=('any')
url="https://gitlab.com/nobodyinperson/${_name}"
license=('MIT')
makedepends=('git' 'python' 'python-wheel' 'python-build' 'python-installer>=0.5')
conflicts=("python-${_name}")
provides=("${_name}")
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
}

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

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

# vim:set ts=2 sw=2 et: