summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92ff5571e0860890cc82e1110ec96d0afbd6466c (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: Caleb Maclennan <caleb@alerque.com>

_pyname=sre-yield
__pyname=${_pyname/-/_} # project is transitioning, tagged release is earlier scheme
pkgname=python-$_pyname
pkgver=1.2
pkgrel=3
pkgdesc='Generate regular all expression matches'
arch=(any)
url="https://github.com/$_pyname/$_pyname"
license=(Apache-2.0)
depends=(python)
makedepends=(python-{build,installer,wheel}
             python-setuptools)
_archive="$__pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$__pyname/$_archive.tar.gz")
sha256sums=('e94f1a2a3cbafffe1dcd15c1d54e401a1517e052aa64c7d3164f88dc761d7b8a')

build() {
	cd "$_archive"
	python -m build -wn
}

package() {
	cd "$_archive"
	python -m installer -d "$pkgdir" dist/*.whl
}