blob: 4fef95c246926c0baecd7f4047b147697a2a0a55 (
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:
# Contributor: Platon Pronko <platon7pronko@gmail.com>
_gitname="kdtree"
_pkgname="python-$_gitname"
pkgname="$_pkgname"
pkgver="0.16"
pkgrel=4
pkgdesc='Construct, modify and search k-d trees'
url='https://github.com/stefankoegl/kdtree'
license=('ISC')
arch=('any')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
_pkgsrc="$_gitname-$pkgver"
_pkgext="tar.gz"
source=(
"$_pkgsrc.$_pkgext"::"$url/archive/v$pkgver.$_pkgext"
)
sha256sums=(
'1a51501998f29d04aa6851572c7b59a3923af72b6b72a59c64c8ec6536c04b85'
)
build() {
cd "$_pkgsrc"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkgsrc"
python -m unittest
}
package() {
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|