- Remove HELIX_DISABLE_AUTO_GRAMMAR_BUILD.
OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=58
This commit is contained in:
parent
b99c1b3d91
commit
284190113d
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 6 13:27:49 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
- Remove HELIX_DISABLE_AUTO_GRAMMAR_BUILD.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 6 12:20:41 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
Thu Apr 6 12:20:41 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
@ -92,10 +92,7 @@ cp %{SOURCE2} .cargo/config.toml
|
|||||||
sed -e '/^\#\!\/usr\/bin\/env .*/d' -i contrib/completion/hx.*
|
sed -e '/^\#\!\/usr\/bin\/env .*/d' -i contrib/completion/hx.*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true
|
|
||||||
export HELIX_RUNTIME="%{_builddir}/%{name}-%{version}/runtime"
|
|
||||||
%{cargo_build}
|
%{cargo_build}
|
||||||
./target/release/hx --grammar build
|
|
||||||
|
|
||||||
# Shell completions
|
# Shell completions
|
||||||
sed -i "s|hx|helix|g" contrib/completion/hx.*
|
sed -i "s|hx|helix|g" contrib/completion/hx.*
|
||||||
@ -114,6 +111,9 @@ find "%{_builddir}/%{name}-%{version}/runtime/grammars" -type f -name '*.so' -ex
|
|||||||
install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
|
install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
|
||||||
install -Dm644 runtime/tutor -t %{buildroot}%{_helix_runtimedir}
|
install -Dm644 runtime/tutor -t %{buildroot}%{_helix_runtimedir}
|
||||||
|
|
||||||
|
# Not needed during runtime
|
||||||
|
rm -rfv %{buildroot}%{_helix_runtimedir}/grammars/sources
|
||||||
|
|
||||||
# Desktop application file
|
# Desktop application file
|
||||||
install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/Helix.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/Helix.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
%suse_update_desktop_file %{name}
|
%suse_update_desktop_file %{name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user