diff --git a/editor/helix/component.xml b/editor/helix/component.xml new file mode 100644 index 0000000000..2330f6e0c7 --- /dev/null +++ b/editor/helix/component.xml @@ -0,0 +1,3 @@ + + editor.helix + diff --git a/editor/helix/helix/actions.py b/editor/helix/helix/actions.py new file mode 100644 index 0000000000..33b2b30a36 --- /dev/null +++ b/editor/helix/helix/actions.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +def setup(): + # There HAS TO BE a way to parse shell commands as variables. Hardcoding target looks too dirty! + shelltools.system("cargo fetch --locked --target x86_64-unknown-linux-gnu") + +def build(): + shelltools.system("cargo build --frozen --release") + +def install(): + pisitools.dodir("/usr/lib/helix") + pisitools.insinto("/usr/lib/helix", "target/release/hx") + pisitools.dodir("/usr/bin") + pisitools.dosym("/usr/lib/helix/hx", "/usr/bin/hx") + pisitools.dosym("/usr/bin/hx", "/usr/bin/helix") + pisitools.dodoc("README.md") + + pisitools.dodir("/usr/lib/helix/runtime/grammars") + pisitools.insinto("/usr/lib/helix/runtime", "runtime/queries") + pisitools.insinto("/usr/lib/helix/runtime", "runtime/themes") + shelltools.system("find runtime/grammars -type f -name '*.so' -exec install -Dm 755 {} -t %s/usr/lib/helix/runtime/grammars \\;" % get.installDIR()) + pisitools.insinto("/usr/lib/helix/runtime", "runtime/tutor") + + pisitools.dodir("/usr/share/bash-completion/completions") + pisitools.insinto("/usr/share/bash-completion/completions", "contrib/completion/hx.bash", "hx") + pisitools.dodir("/usr/share/fish/vendor_completions.d") + pisitools.insinto("/usr/share/fish/vendor_completions.d", "contrib/completion/hx.fish", "hx.fish") + pisitools.dodir("/usr/share/zsh/site-functions") + pisitools.insinto("/usr/share/zsh/site-functions", "contrib/completion/hx.zsh", "_hx") + pisitools.dodir("/usr/share/applications") + pisitools.insinto("/usr/share/applications", "contrib/Helix.desktop", "helix.desktop") + pisitools.dodir("/usr/share/icons/hicolor/256x256/apps") + pisitools.insinto("/usr/share/icons/hicolor/256x256/apps", "contrib/helix.png") diff --git a/editor/helix/helix/pspec.xml b/editor/helix/helix/pspec.xml new file mode 100644 index 0000000000..e758815ee0 --- /dev/null +++ b/editor/helix/helix/pspec.xml @@ -0,0 +1,65 @@ + + + + + helix + https://helix-editor.com + + Bedirhan Kurt + bedirhan.kurt@outlook.com + + MPL-2.0 + A post-modern text editor + A post-modern modal text editor + Bir post-modern metin düzenleyici + Bir post-modern şekilsel metin düzenleyici + https://github.com/helix-editor/helix/archive/25.07.1.tar.gz + + git + rust + + + + + helix + A post-modern text editor + app:console + + libgcc + glibc + icon-theme-hicolor + + + /usr/bin/hx + /usr/lib/helix/hx + /usr/lib/helix/runtime + /usr/share/applications/helix.desktop + /usr/share/bash-completion/completions/hx + /usr/share/doc + /usr/share/fish/vendor_completions.d/hx.fish + /usr/share/icons + /usr/share/zsh/site-functions/_hx + + + + + hxbinhelix + Symlink to assign helix to hx + + helix + + + /usr/bin/helix + + + + + + 2025-09-06 + 25.07.1 + Initial release + Bedirhan Kurt + bedirhan.kurt@outlook.com + + +