Skip to content

Commit f97b199

Browse files
committed
tree-sitter: update to 0.26.2
this time the release is stable. rquickjs patch is not needed, crate is already updated
1 parent c67a9c0 commit f97b199

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

mingw-w64-tree-sitter/PKGBUILD

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ _realname=tree-sitter
55
pkgbase=mingw-w64-${_realname}
66
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
77
"${MINGW_PACKAGE_PREFIX}-lib${_realname}")
8-
pkgver=0.25.10
9-
pkgrel=3
8+
pkgver=0.26.2
9+
pkgrel=1
1010
epoch=1
1111
pkgdesc="An incremental parsing system for programming tools (mingw-w64)"
1212
arch=('any')
@@ -25,27 +25,14 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
2525
"${MINGW_PACKAGE_PREFIX}-rust-bindgen"
2626
"${MINGW_PACKAGE_PREFIX}-libwasmtime")
2727
checkdepends=('git')
28-
source=("https://github.com/tree-sitter/tree-sitter/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
29-
"rquickjs-sys.tar.gz::https://crates.io/api/v1/crates/rquickjs-sys/0.9.0/download"
30-
"rquickjs-sys-clang-build.patch")
31-
sha256sums=('ad5040537537012b16ef6e1210a572b927c7cdc2b99d1ee88d44a7dcdc3ff44c'
32-
'7fed0097b0b4fbb2a87f6dd3b995a7c64ca56de30007eb7e867dfdfc78324ba5'
33-
'1535a50435eca881abf8d913e61710e1c807019a5f2eb81581757841f8686a33')
28+
source=("https://github.com/tree-sitter/tree-sitter/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
29+
sha256sums=('3cda4166a049fc736326941d6f20783b698518b0f80d8735c7754a6b2d173d9a')
3430
noextract=("${_realname}-${pkgver}.tar.gz")
3531

3632
prepare() {
3733
tar -xzf "${_realname}-${pkgver}.tar.gz" || true
3834
cd "${_realname}-${pkgver}"
3935

40-
# from 0.26.0
41-
# patch -d ../rquickjs-sys-0.9.0 -p1 -i ../rquickjs-sys-clang-build.patch
42-
# cat >> Cargo.toml <<END
43-
44-
# [patch.crates-io]
45-
# rquickjs-sys.path = "../rquickjs-sys-0.9.0"
46-
# END
47-
48-
# cargo update -p rquickjs-sys
4936
cargo fetch --locked --target "${RUST_CHOST}"
5037
}
5138

@@ -68,7 +55,7 @@ build() {
6855
-DBUILD_SHARED_LIBS=ON \
6956
-DTREE_SITTER_FEATURE_WASM=ON \
7057
-DCMAKE_DLL_NAME_WITH_SOVERSION=ON \
71-
-S "${_realname}-${pkgver}/lib" \
58+
-S "${_realname}-${pkgver}" \
7259
-B "build-${MSYSTEM}"
7360

7461
cmake --build "build-${MSYSTEM}"

0 commit comments

Comments
 (0)