Skip to content

Instantly share code, notes, and snippets.

@cinerea0
Created January 19, 2022 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cinerea0/e338ffb15791586574066a99455ff1c6 to your computer and use it in GitHub Desktop.
Save cinerea0/e338ffb15791586574066a99455ff1c6 to your computer and use it in GitHub Desktop.
Helix xbps-src files
# Template file for 'helix'
pkgname=helix
version=0.6.0
revision=1
# watch for language submodules
_agda_commit=ca69cdf485e9ce2b2ef0991a720aa88d87d30231
_bash_commit=a8eb5cb57c66f74c63ab950de081207cccf52017
_c_commit=f05e279aedde06a25801c3f2b2cc8ac17fac52ae
_c_sharp_commit=53a65a908167d6556e1fcdb67f1ee62aac101dda
_cmake_commit=f6616f1e417ee8b62daf251aa1daa5d73781c596
_comment_commit=5dd3c62f1bbe378b220fe16b317b85247898639e
_cpp_commit=e8dcc9d2b404c542fd236ea5f7208f90be8a6e89
_css_commit=94e10230939e702b4fa3fa2cb5c3bc7173b95d07
_dart_commit=6a25376685d1d47968c2cef06d4db8d84a70025e
_dockerfile_commit=7af32bc04a66ab196f5b9f92ac471f29372ae2ce
_elixir_commit=f5d7bda543da788bd507b05bd722627dde66c9ec
_fish_commit=04e54ab6585dfd4fee6ddfe5849af56f101b6d4f
_git_commit_commit=066e395e1107df17183cf3ae4230f1a1406cc972
_git_diff_commit=c12e6ecb54485f764250556ffd7ccb18f8e2942b
_git_rebase_commit=332dc528f27044bc4427024dbb33e6941fc131f2
_glsl_commit=88408ffc5e27abcffced7010fc77396ae3636d7e
_go_commit=2a83dfdd759a632651f852aa4dc0af2525fae5cd
_haskell_commit=237f4eb4417c28f643a29d795ed227246afb66f9
_html_commit=d93af487cc75120c89257195e6be46c999c6ba18
_java_commit=bd6186c24d5eb13b4623efac9d944dcc095c0dad
_javascript_commit=4a95461c4761c624f2263725aca79eeaefd36cad
_json_commit=65bceef69c3b0f24c0b19ce67d79f57c96e90fcb
_julia_commit=12ea597262125fc22fd2e91aa953ac69b19c26ca
_latex_commit=7f720661de5316c0f8fee956526d4002fa1086d8
_ledger_commit=0cdeb0e51411a3ba5493662952c3039de08939ca
_llvm_commit=3b213925b9c4f42c1acfe2e10bfbb438d9c6834d
_lua_commit=6f5d40190ec8a0aa8c8410699353d820f4f7d7a6
_markdown_commit=ad8c32917a16dfbb387d1da567bf0c3fb6fffde2
_nix_commit=50f38ceab667f9d482640edfee803d74f4edeba5
_ocaml_commit=23d419ba45789c5a47d31448061557716b02750a
_perl_commit=0ac2c6da562c7a2c26ed7e8691d4a590f7e8b90a
_php_commit=0d63eaf94e8d6c0694551b016c802787e61b3fb2
_protobuf_commit=19c211a01434d9f03efff99f85e19f967591b175
_python_commit=d6210ceab11e8d812d4ab59c07c81458ec6e5184
_ruby_commit=dfff673b41df7fadcbb609c6338f38da3cdd018e
_rust_commit=a360da0a29a19c281d08295a35ecd0544d2da211
_scala_commit=0a3dd53a7fc4b352a538397d054380aaa28be54c
_svelte_commit=349a5984513b4a4a9e143a6e746120c6ff6cf6ed
_swift_commit=a22fa5e19bae50098e2252ea96cba3aba43f4c58
_tablegen_commit=568dd8a937347175fd58db83d4c4cdaeb6069bd2
_toml_commit=7cff70bbcbbc62001b465603ca1ea88edd668704
_tsq_commit=b665659d3238e6036e22ed0e24935e60efb39415
_typescript_commit=3e897ea5925f037cfae2e551f8e6b12eec2a201a
_vue_commit=91fe2754796cd8fba5f229505a23fa08f3546c06
_wgsl_commit=f00ff52251edbd58f4d39c9c3204383253032c11
_yaml_commit=0e36bed171768908f331ff7dff9d956bae016efb
_zig_commit=1f27fd1dfe7f352408f01b4894c7825f3a1d6c47
build_style=cargo
make_install_args="--path helix-term"
short_desc="Post-modern modal text editor"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="MPL-2.0"
homepage="https://helix-editor.com/"
changelog="https://raw.githubusercontent.com/helix-editor/helix/master/CHANGELOG.md"
distfiles="https://github.com/helix-editor/helix/archive/refs/tags/v${version}.tar.gz
https://github.com/tree-sitter/tree-sitter-agda/archive/${_agda_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-bash/archive/${_bash_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-c/archive/${_c_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-c-sharp/archive/${_c_sharp_commit}.tar.gz
https://github.com/uyha/tree-sitter-cmake/archive/${_cmake_commit}.tar.gz
https://github.com/stsewd/tree-sitter-comment/archive/${_comment_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-cpp/archive/${_cpp_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-css/archive/${_css_commit}.tar.gz
https://github.com/UserNobody14/tree-sitter-dart/archive/${_dart_commit}.tar.gz
https://github.com/camdencheek/tree-sitter-dockerfile/archive/${_dockerfile_commit}.tar.gz
https://github.com/elixir-lang/tree-sitter-elixir/archive/${_elixir_commit}.tar.gz
https://github.com/ram02z/tree-sitter-fish/archive/${_fish_commit}.tar.gz
https://github.com/the-mikedavis/tree-sitter-git-commit/archive/${_git_commit_commit}.tar.gz
https://github.com/the-mikedavis/tree-sitter-git-diff/archive/${_git_diff_commit}.tar.gz
https://github.com/the-mikedavis/tree-sitter-git-rebase/archive/${_git_rebase_commit}.tar.gz
https://github.com/theHamsta/tree-sitter-glsl/archive/${_glsl_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-go/archive/${_go_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-haskell/archive/${_haskell_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-html/archive/${_html_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-java/archive/${_java_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-javascript/archive/${_javascript_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-json/archive/${_json_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-julia/archive/${_julia_commit}.tar.gz
https://github.com/latex-lsp/tree-sitter-latex/archive/${_latex_commit}.tar.gz
https://github.com/cbarrete/tree-sitter-ledger/archive/${_ledger_commit}.tar.gz
https://github.com/benwilliamgraham/tree-sitter-llvm/archive/${_llvm_commit}.tar.gz
https://github.com/nvim-treesitter/tree-sitter-lua/archive/${_lua_commit}.tar.gz
https://github.com/MDeiml/tree-sitter-markdown/archive/${_markdown_commit}.tar.gz
https://github.com/cstrahan/tree-sitter-nix/archive/${_nix_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-ocaml/archive/${_ocaml_commit}.tar.gz
https://github.com/ganezdragon/tree-sitter-perl/archive/${_perl_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-php/archive/${_php_commit}.tar.gz
https://github.com/yusdacra/tree-sitter-protobuf/archive/${_protobuf_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-python/archive/${_python_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-ruby/archive/${_ruby_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-rust/archive/${_rust_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-scala/archive/${_scala_commit}.tar.gz
https://github.com/Himujjal/tree-sitter-svelte/archive/${_svelte_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-swift/archive/${_swift_commit}.tar.gz
https://github.com/Flakebi/tree-sitter-tablegen/archive/${_tablegen_commit}.tar.gz
https://github.com/ikatyang/tree-sitter-toml/archive/${_toml_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-tsq/archive/${_tsq_commit}.tar.gz
https://github.com/tree-sitter/tree-sitter-typescript/archive/${_typescript_commit}.tar.gz
https://github.com/ikatyang/tree-sitter-vue/archive/${_vue_commit}.tar.gz
https://github.com/szebniok/tree-sitter-wgsl/archive/${_wgsl_commit}.tar.gz
https://github.com/ikatyang/tree-sitter-yaml/archive/${_yaml_commit}.tar.gz
https://github.com/maxxnino/tree-sitter-zig/archive/${_zig_commit}.tar.gz"
checksum="522aec90a268015b88cd7ddbc9de43c93314241b863cf7b7da12205cec565464
bc16d7a774c4df2963df22b9cab52399c7192990c5b8a1899da65218271122e4
ba9401fdc36eec4a6034c76f007192a91a7967e2ea658e675b6a8b34d43685ae
3d4f83a79dc19fbf899343ae403b8608cf5e7300f148c5e22de30fdafbbe1024
63355eb936d303b34740d701a66534829dbe1a89496ca14fd359570a9ecfcacc
29fa71f136ac48134559db00aaa3d5b797c47513f0a0fb10db0fc499663e6141
403f5fa543728295649728e6253313c5b8e55ab7cbb78ef72ca7c24ee53fbd74
45bfbb244921e37e217132bdd5bf72a49a80329b247ea7bc53281e3f87bd1612
78c057f33bf84781c83f1d67e301bd4c0fa7fb58362d3db28c39521894a353c7
cba2ba5fe3862b82f4b0e8b10d83cb75df9c9d52d27c0e6257069af04b094845
f272fbc888b094a8a8b9d2a4ed2076a73d2caf63d78e034e6bf608ed6b3cfe57
a2fe198e9c8b71efb314e935e62437da2c0890fc18276273e74fef4e105636aa
e03494c6579e82661d6510f225e60ec9509e878b6748b19ccd654384ac8d2cd9
20e5b1b78618f0ac8079c1bc35ff956f2e7ee68b906c7fb0697d76ca5cba4fda
d1efef54604611550e08b98e7b1347f8c420461e7dfd4d5ea750686b1a904bfa
fa8285746bed4f04884cb05176542e96e95c60c7c4eaf8209cbe1ac85fbdc291
f1d5bf8eddd260bbce816a92c9283f7c1b02a87081050d84a0d84ea7d48f8472
ed136612a62fad6e81e2321e10b58e2c603b62519e18115d336de8547768a801
b72c7ff684882c3bae96d333a414cb085746284e032700abe3104617214d4794
5c887faf5feb622c42facb32797d81b24dcda11ac195353c9b7c704239f7683e
56afb1073757977301127a1cfffa4ec08b40af6fd10fd3feb227da1efc07313c
f42afcade087fce02f1437eeafa33136c66f073c9fd31fcc4ed7c75c1371137b
2208391bca425edc995c414f934c91fdd65737961ddaa72dee29ca193bc9a6bc
3197540a4bf917e8e5e24588a23da910e89d1be479ce1973e08efbfaeb721b14
93368b1811a6ae01cdd882cf82929b600eb87d27f1eb0b6ea73ed5e38e397599
528bb2c9c552852bebf5e31d7d07307b9341b6884cf97340f1e35e08232bfd46
82ff1c1975664103270a9f77edb9d70c2694baf07ca914fda73da844a94e0fb9
e59879a6d1bcc86f9b939225fc1ff2e75adae00c1970b7c8a6a438fb98365c7d
a2587f3f53c9739b1708deec47115be79797de7b2887d465d88c7d24d5cb1521
17f148b833cdc1d389e1f80843f595f823e60dccb71f360250507a0a8915638c
c0ca5d5298d360ec804731b0e289cf283aa2194da6eaa1d6da60f8631bb2830b
d6d00007f44d9cd621de66ccfbb97f28979c7f6bbb8ebc1a97c285f59c122fde
c431568540cb9c02291d0bbc0a0f664fa77d3a149a60523ecfac687753924742
c2fd2810873a2d189b3ea4b40facea6443b0b1f4b5d3e80aedc46c6bec3c2953
ab398f8ad40944b5cd60977eea050c5c2170e9827673195a1b4be4a01a829ad8
47155e04cac9403fa5cf23a63252825abee1878674334111fcf620343258fd1b
6c45e780cc75fb1690750b3da6b78798ebfcf3a585732d5a7240bc61f3a557c8
59da8133f732676b8adee54c6d34b4afc1aef379b255bd00b1a7a71f4d93d5ac
055626767b50fdcb375295121876f65c2e148e433089d73750896f25d98863ef
6a67baa50643e221d3baad30854fda83a376a30fc13bbb4912decb9d0d94b21a
83e556828ce31bda84e02a658c330bd545f22ec91cfedf8260234a87eae7cda0
93f36067123041867dabfd649c3588186c1643dfb1f69ad1fea3377c5b693294
a1d90deb8073b0d0db7c52d7832f14e95efe39ae60ca0606a6b2b10a98ba984c
7e7f91a556308fd956256d9040b3595efbb62c8fda96fe4f9e5c0d523e93c320
c71edcf9669d16a8f7b83ed25aa14305e2d966d4c57e9552016a1e11ebd50591
4f7942d0210c7b48f36644e26a4125b68db31ca72d4878c1962200255e44ef81
46b6052ab86a14bb23406fbb5c56dc436798cb67b28a0e7fafe3183bc0c87788
b03e1c0b1cb0040cf5e3cb6482b0d8da7ffcfeac14678b8d71dc9ffa58f36a61"
post_extract() {
# special operations for parsers with similar names
mv -f ../tree-sitter-c-sharp-*/* helix-syntax/languages/tree-sitter-c-sharp
# most languages
for lang in agda bash c cmake comment cpp css dart dockerfile elixir \
fish git-commit git-diff git-rebase glsl go haskell html java javascript \
json julia latex ledger llvm lua markdown nix ocaml perl php protobuf \
python ruby rust scala svelte swift tablegen toml tsq typescript vue wgsl \
yaml zig
do
mv -f ../tree-sitter-${lang}-*/* helix-syntax/languages/tree-sitter-${lang}
done
}
post_install() {
vmkdir usr/lib/helix/runtime 0755
vcopy runtime/* usr/lib/helix/runtime/
mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/_helix
vbin ${FILESDIR}/helix-wrapper.sh helix
vlicense LICENSE
}
#!/bin/sh
HELIX_RUNTIME=/usr/lib/helix/runtime exec /usr/lib/helix/_helix "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment