Date: Tuesday, February 21, 2023 @ 09:09:21
Author: dvzrv
Revision: 1403209
Move runtime dir back to /usr/lib/helix/runtime.
As no other user but root is able to fetch and build grammars below
/var/lib/helix/runtime, the default location below /usr/lib/helix/runtime is
more suitable for the compiled grammars.
Users wanting to fetch and build grammars need to use e.g.
HELIX_RUNTIME=dir/to/users/runtime /usr/lib/helix/hx --grammar <fetch|build>
Modified:
helix/trunk/PKGBUILD
helix/trunk/helix.sh
----------+
PKGBUILD | 5 ++---
helix.sh | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-21 08:45:01 UTC (rev 1403208)
+++ PKGBUILD 2023-02-21 09:09:21 UTC (rev 1403209)
@@ -36,7 +36,7 @@
source=("$pkgname-$pkgver.tar.gz::https://github.com/helix-editor/helix/archive/$pkgver.tar.gz"
"$pkgname.sh")
sha256sums=('edae8af46401b45c3e71c38b4fa99f931c4458127978ccd1b29aaae79331d972'
- '90d14e5c8fb65e64b508fcf4358cb45191b39e24bd6c5981814139a2a627fa5c')
+ 'f782c93bc0f2c7b27ec62fb2ba36e11b3354c3953405f8d2017b039c9eac500a')
options=('!lto')
prepare() {
@@ -62,7 +62,7 @@
install -Dm 755 "target/release/hx" "$pkgdir/usr/lib/$pkgname/hx"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
- local runtime_dir="$pkgdir/var/lib/$pkgname/runtime"
+ local runtime_dir="$pkgdir/usr/lib/$pkgname/runtime"
mkdir -p "$runtime_dir/grammars"
cp -r "runtime/queries" "$runtime_dir"
cp -r "runtime/themes" "$runtime_dir"
@@ -69,7 +69,6 @@
find "runtime/grammars" -type f -name '*.so' -exec \
install -Dm 755 {} -t "$runtime_dir/grammars" \;
install -Dm 644 runtime/tutor -t "$runtime_dir"
- ln -s "/var/lib/$pkgname/runtime" "$pkgdir/usr/lib/$pkgname/runtime"
install -Dm 644 "contrib/completion/hx.bash"
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm 644 "contrib/completion/hx.fish"
"$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
Modified: helix.sh
===================================================================
--- helix.sh 2023-02-21 08:45:01 UTC (rev 1403208)
+++ helix.sh 2023-02-21 09:09:21 UTC (rev 1403209)
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
-HELIX_RUNTIME=/var/lib/helix/runtime exec /usr/lib/helix/hx "$@"
+HELIX_RUNTIME=/usr/lib/helix/runtime exec /usr/lib/helix/hx "$@"