blob: 7d7ac2465a1def1e6458c26a4a8b9f065e90d057 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>
pkgname=python-lazrs
pkgdesc="Python bindings for laz-rs (LAZ compression)"
pkgver=0.7.0
pkgrel=1
url='https://github.com/laz-rs/laz-rs-python'
arch=('x86_64')
license=('MIT')
depends=(
'gcc-libs'
'glibc'
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-maturin'
)
_pypi=lazrs
source=(
"https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz"
)
sha256sums=(
'53191b351c1d9fa45f74471698384bf42bde14599309645fb9d4c353f0fb7f24'
)
build() {
cd "$_pypi-$pkgver"
python -m build --no-isolation --wheel
}
check() {
cd "$_pypi-$pkgver"
rm -rf test-env
python -m venv --system-site-packages test-env
test-env/bin/python -m installer "dist/$_pypi-$pkgver-"*.whl
test-env/bin/python -c 'import lazrs'
}
package() {
cd "$_pypi-$pkgver"
python -m installer --destdir="$pkgdir" "dist/$_pypi-$pkgver-"*.whl
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|