blob: 2736c995532b19427230ecc83169e58b2728e496 (
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
|
# Maintainer: Leo <i@hardrain980.com>
_pkgname=google_re2
pkgname=python-re2
pkgver=1.1.20251105
pkgrel=1
pkgdesc="RE2 Python bindings"
arch=('any')
url="https://github.com/google/re2"
license=('BSD')
depends=('re2>=1:20240501-1')
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'pybind11' 'python-installer')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('1db14a292ee8303b91e91e7c37e05ac17d3c467f29416c79ac70a78be3e65bda')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
:
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
find $pkgdir -type f -exec chmod 644 {} \;
find $pkgdir -type d -exec chmod 755 {} \;
}
|