summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 857812886ca1fe1872a2b69589484119f7ff1684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
# Updated by https://github.com/Freed-Wu/tree-sitter-hlsplaylist/blob/main/.github/workflows/main.yml
_pkgname=tree-sitter-hlsplaylist
pkgname=python-$_pkgname
pkgver=0.0.3
pkgrel=1
pkgdesc="hlsplaylist grammar for tree-sitter"
arch=(i686 x86_64 arm aarch64)
url=https://github.com/Freed-Wu/$_pkgname
depends=(python-tree-sitter)
makedepends=(python-installer)
license=(GPL3)
_py="cp$(python -c'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")' || echo 311)"
source=("https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/${_pkgname//-/_}/${_pkgname//-/_}-$pkgver-$_py-$_py-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl")
sha256sums=('7ee28acf86e23a946a42bafbf92611d26ffc2fc831d6120a6f541068917a97ff')

package() {
	python -minstaller -d"$pkgdir" ./*.whl
}