summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67198a10b9d95a92777fc42f3bcb8bb3d4d57ba0 (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
# Maintainer:
# Contributor: Platon Pronko <platon7pronko@gmail.com>

_gitname="kdtree"
_pkgname="python-$_gitname"
pkgname="$_pkgname"
pkgver="0.16"
pkgrel=3
pkgdesc='Construct, modify and search k-d trees'
arch=('any')
url='https://github.com/stefankoegl/kdtree'
license=('ISC')
depends=(
  'python'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
source=(
  "$_gitname-$pkgver.tar.gz"::"$url/archive/v$pkgver.tar.gz"
)
sha256sums=(
  '1a51501998f29d04aa6851572c7b59a3923af72b6b72a59c64c8ec6536c04b85'
)

build() {
  cd "$srcdir/$_gitname-$pkgver"
  python -m build --wheel --no-isolation
}

check() {
  cd "$srcdir/$_gitname-$pkgver"
  python -m unittest
}

package() {
  cd "$srcdir/$_gitname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -vDm0644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}