[packages/tree-sitter-bash] new

atler atler at pld-linux.org
Wed Jun 26 20:53:26 CEST 2024


commit e026afc6cc0b23f58d69e6ade8a25edbb2f25e93
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jun 26 20:39:05 2024 +0200

    new

 tree-sitter-bash.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/tree-sitter-bash.spec b/tree-sitter-bash.spec
new file mode 100644
index 0000000..5c81851
--- /dev/null
+++ b/tree-sitter-bash.spec
@@ -0,0 +1,55 @@
+Summary:	Bash grammar for tree-sitter
+Name:		tree-sitter-bash
+Version:	0.20.5
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	https://github.com/tree-sitter/tree-sitter-bash/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	fca0289b077a0aedf8b66ee9b9de6e6d
+URL:		https://github.com/tree-sitter/tree-sitter-bash
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		ts_bash_soname	libtree-sitter-bash.so.0
+
+%description
+Bash grammar for tree-sitter.
+
+%package -n neovim-parser-bash
+Summary:	Bash parser for Neovim
+Group:		Applications/Editors
+Requires:	%{name} = %{version}-%{release}
+
+%description -n neovim-parser-bash
+Bash parser for Neovim.
+
+%prep
+%setup -q
+
+%build
+%{__cc} %{rpmcppflags} %{rpmcflags} -fPIC -shared -Wl,-soname,%{ts_bash_soname} src/*.c -o libtree-sitter-bash.so.%{version} %{rpmldflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_libdir}/nvim/parser}
+
+cp -p libtree-sitter-bash.so.%{version} $RPM_BUILD_ROOT%{_libdir}
+%{__ln_s} libtree-sitter-bash.so.%{version} $RPM_BUILD_ROOT%{_libdir}/%{ts_bash_soname}
+
+%{__ln_s} %{_libdir}/%{ts_bash_soname} $RPM_BUILD_ROOT%{_libdir}/nvim/parser/bash.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_libdir}/libtree-sitter-bash.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/%{ts_bash_soname}
+
+%files -n neovim-parser-bash
+%defattr(644,root,root,755)
+%{_libdir}/nvim/parser/bash.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tree-sitter-bash.git/commitdiff/e026afc6cc0b23f58d69e6ade8a25edbb2f25e93



More information about the pld-cvs-commit mailing list