summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd6d708871c57da400f7cd02ab11844e91168d5e (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
# Maintainer: RubenKelevra <rubenkelevra@gmail.com>
# Contributor: Rafael Dominiquini <rafaeldominiquini at gmail dot com>

pkgname=python-tree-sitter-rust
_gitpkgname=tree-sitter-rust
pkgver=0.24.2
pkgrel=2
pkgdesc='Python Bindings for tree-sitter-rust'
arch=(
      'x86_64'
      'aarch64'
)
url='https://github.com/tree-sitter/tree-sitter-rust'
license=('MIT')
depends=(
	'python'
	"tree-sitter-rust=${pkgver}"
	'python-tree-sitter'
	'tree-sitter'
)
makedepends=(
	'python-build'
	'python-installer'
	'python-setuptools'
	'python-wheel'
)

source=(
	"${_gitpkgname}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_gitpkgname}.tar.gz"
)

b2sums=('7a88632b7bc359f7a15e80e88d5b357f3509fcc75e5527f539e80391cda14499df545af56f375dd162eea51b619488950e0e0342f29bd2007cf6f8e18ac73d10')

build() {
	python -m build --wheel --no-isolation
}

package() {
	python -I -m installer --destdir="${pkgdir}" --compile-bytecode 2 dist/*.whl
	install -D -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
	install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}