blob: 034a90bdd9584d355cb59c07202256a7e6d59b5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env -S sh -c 'nvchecker -cnvchecker.toml --logger=json | jq -r '\''.version | sub("^v"; "") | split("-") | .[-1]'\'' | xargs -i{} sed -i "s/^\\(pkgver=\\).*/\\1{}/" $0'
# shellcheck shell=bash disable=SC2034,SC2154
# ex: nowrap
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
_pkgname=tree-sitter-requirements
pkgname=python-$_pkgname
pkgver=0.4.0
pkgrel=1
pkgdesc="A tree-sitter parser for requirements.txt files"
arch=(x86_64)
url=https://github.com/Freed-Wu/$_pkgname
depends=(python)
makedepends=(python-installer)
license=(GPL3)
_py=cp39
source=("https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/${_pkgname//-/_}/${_pkgname//-/_}-$pkgver-$_py-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
sha256sums=('7f81c6ed5dcbc8e26510fa664351eec27e89e8de0da3debdb88cc95304e155c1')
package() {
python -minstaller -d"$pkgdir" ./*.whl
}
|