wok-current view tree-sitter/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | b7693f5d4c81 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tree-sitter"
4 VERSION="0.20.7"
5 CATEGORY="development"
6 SHORT_DESC="An incremental parsing system for programming tools."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://tree-sitter.github.io/tree-sitter/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make PREFIX=/usr &&
25 make install PREFIX=/usr
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cook_copy_files *.so*
32 }