mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-20 07:11:59 +01:00
testing/tree-sitter-ruby: new aport
This commit is contained in:
parent
a9fc4780c6
commit
a12cee7eec
34
testing/tree-sitter-ruby/APKBUILD
Normal file
34
testing/tree-sitter-ruby/APKBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=tree-sitter-ruby
|
||||
pkgver=0.19.0
|
||||
pkgrel=0
|
||||
pkgdesc="Ruby grammar for tree-sitter"
|
||||
url="https://github.com/tree-sitter/tree-sitter-ruby"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="tree-sitter-dev"
|
||||
install_if="tree-sitter-grammars"
|
||||
source="https://github.com/tree-sitter/tree-sitter-ruby/archive/v$pkgver/tree-sitter-ruby-$pkgver.tar.gz"
|
||||
options="!check" # no tests for shared lib
|
||||
|
||||
build() {
|
||||
cd src
|
||||
|
||||
cc $CFLAGS -fPIC -Wall -std=c99 -c ./*.c
|
||||
c++ $CXXFLAGS -fPIC -Wall -c ./*.cc
|
||||
c++ $LDFLAGS -shared -Wl,--no-undefined -o lib$pkgname.so ./*.o
|
||||
}
|
||||
|
||||
package() {
|
||||
install -D -m755 src/lib$pkgname.so -t "$pkgdir"/usr/lib/
|
||||
|
||||
# Create symlink for Neovim
|
||||
install -d "$pkgdir"/usr/share/nvim/runtime/parser
|
||||
ln -s ../../../../lib/lib$pkgname.so \
|
||||
"$pkgdir"/usr/share/nvim/runtime/parser/${pkgname#tree-sitter-}.so
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
dc092b55a73a7ffaf698c784e0a6e8fd115478ce8eb2de00301bb8c2455044a4b7f4cd04ab36eb19401386b55088ad3fba6cb9cce9856b6f607bd76caaf0900b tree-sitter-ruby-0.19.0.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user