SHA256
1
0
forked from pool/helix

- add README.SUSE:

* contains information on workarounds and how to run helix
- remove %post message from spec file

OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=9
This commit is contained in:
Soc Virnyl Estela 2022-04-21 16:40:05 +00:00 committed by Git OBS Bridge
parent 69e814f53f
commit 5535203388
3 changed files with 52 additions and 10 deletions

45
README.SUSE Normal file
View File

@ -0,0 +1,45 @@
HELIX EDITOR FOR YOUR INFORMATION
Soc Virnyl Estela <socvirnyl.estela@gmail.com>
This is a small document that explains how to run/use helix.
Because of the limitations of cargo-packaging in openSUSE Build Service,
we have to resort on some workarounds before running helix.
TABLE OF CONTENTS
The Name of the launcher binary
Before running helix
Fetching and building grammars
Troubleshooting
Documentation
THE NAME OF THE LAUNCHER BINARY
The launcher binary is renamed as 'helix', alias hx='helix' if you were using 'hx'.
BEFORE RUNNING HELIX
Helix needs its runtime files so make sure to copy/symlink the runtime/ directory
into the config directory (for example ~/.config/helix/runtime).If you see an error when
launching helix, copy the runtime directory.
Runtime directory is found in '/usr/lib64/helix/runtime'.
FETCHING AND BUILDING GRAMMARS
Run 'helix --grammar fetch' then 'helix --grammar build' to install the grammars.
To customize language-specific settings, you can copy '/usr/share/doc/packages/helix/languages.toml'
to '~/.helix/' or '~/.config/helix'.
TROUBLESHOOTING
If you see an error when launching helix for the first time, it might be
because you did not copy the runtime directory.
Otherwise, open an issue at:
https://github.com/helix-editor/helix/issues/new
DOCUMENTATION
https://docs.helix-editor.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 21 16:38:20 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- add README.SUSE
- remove %post message from spec file
-------------------------------------------------------------------
Thu Apr 21 12:13:46 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -58,18 +58,9 @@ ln -sv %{_helix_runtimedir} %{buildroot}%{_libdir}/%{name}/runtime
install -D -d -m 0755 %{buildroot}%{_bindir}
install -Dm755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}
%post -p /bin/bash
MESSAGE="The launcher binary is renamed as 'helix', alias hx='helix' if you were using 'hx'.
Helix also needs its runtime files so make sure to copy/symlink the runtime/ directory into the config directory (for example ~/.config/helix/runtime).
If you see an error when launching helix, copy the runtime directory. Runtime directory is found in '/usr/lib64/helix/runtime'.
Then run 'helix --grammar fetch' then 'helix --grammar build' to install the grammars.
To customize language-specific settings, you can copy '/usr/share/doc/packages/helix/languages.toml'
to '~/.helix/' or '~/.config/helix'. More information can be found in https://docs.helix-editor.com/languages.html"
echo -e "${MESSAGE}"
%files
%license LICENSE
%doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md
%doc README.md README.SUSE CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md
%{_bindir}/%{name}
%dir %{_sharedstatedir}/%{name}
%dir %{_helix_runtimedir}