[arch-commits] Commit in tree-sitter/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Thu Jul 23 00:34:23 UTC 2020
Date: Thursday, July 23, 2020 @ 00:34:23
Author: ffy00
Revision: 664957
upgpkg: tree-sitter 0.16.9-1
Added:
tree-sitter/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-23 00:34:23 UTC (rev 664957)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=tree-sitter
+pkgver=0.16.9
+pkgrel=1
+pkgdesc='An incremental parsing system for programming tools'
+arch=('x86_64')
+url='https://github.com/tree-sitter/tree-sitter'
+license=('MIT')
+provides=('libtree-sitter.so')
+makedepends=('git' 'cargo' 'npm' 'emscripten')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('SKIP')
+
+build() {
+ cd $pkgname-$pkgver
+
+ make
+
+ ./script/build-wasm
+
+ cd cli
+
+ cargo build --release --locked --all-features
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+
+ install -Dm 755 target/release/$pkgname -t "$pkgdir"/usr/bin
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list