blob: 8072f80d53adea1cf2fa8c874e0a3758b1aa6baf (
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
|
# Maintainer: Byeonghoon Yoo <bhyoo@bhyoo.com>
_name=tree-sitter-objc
pkgname=python-tree-sitter-objc
pkgver=3.0.2
pkgrel=7
pkgdesc="Objc grammar for tree-sitter"
arch=('any')
url="https://github.com/tree-sitter-grammars/tree-sitter-objc"
license=('MIT')
depends=('python' 'python-tree-sitter')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tree-sitter-grammars/tree-sitter-objc/archive/refs/tags/v3.0.2.tar.gz")
sha256sums=('186d03ecb9ae41cde85efbe283dcbe67c277fff766a946f7efd6d51fee72370d')
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|