[arch-commits] Commit in tree-sitter/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Thu Jul 23 00:34:31 UTC 2020


    Date: Thursday, July 23, 2020 @ 00:34:31
  Author: ffy00
Revision: 664958

archrelease: copy trunk to community-x86_64

Added:
  tree-sitter/repos/community-x86_64/
  tree-sitter/repos/community-x86_64/PKGBUILD
    (from rev 664957, tree-sitter/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: tree-sitter/repos/community-x86_64/PKGBUILD (from rev 664957, tree-sitter/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-07-23 00:34:31 UTC (rev 664958)
@@ -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