summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7550c8226cf440311094137c51397b6b7fbbd968 (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
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>

_pkgname='repath'
pkgname="python-${_pkgname}"
pkgver=0.9.0 # From https://pypi.org/project/repath/, although it isn't tagged on github.
pkgrel=2
pkgdesc='Parses express-style paths to PCRE regular expression patterns.'
arch=(any)
url="https://github.com/nickcoutsos/${pkgname}"
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
sha256sums=('SKIP')
source=("git+${url}.git#commit=a9ab3136bb05abafb44811d60c87f9d1d035197a")

_srcdir="$pkgname"

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

package() {
	cd "$_srcdir"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 'LICENSE' -t "$pkgdir/usr/share/licenses/${pkgname}"
}