summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 780a3e1842fbabb6d5fb0f825a97a6ffcdfeb6bc (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
# Maintainer: workonfire <kolucki62@gmail.com>

_pkgname=onigurumacffi
pkgname=python-$_pkgname
pkgver=1.1.0
pkgrel=1
pkgdesc="Python cffi bindings for the oniguruma regex engine"
arch=('x86_64')
url="https://github.com/asottile/onigurumacffi"
license=('MIT')
depends=('oniguruma' 'python-cffi')
makedepends=('python-setuptools')
source=("$url/archive/v$pkgver.tar.gz")
md5sums=('191a556c60f4d93a42127292b16e2f98')

build() {
	cd "$srcdir/$_pkgname-$pkgver"
	python setup.py build
}

package() {
	cd "$srcdir/$_pkgname-$pkgver"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}