diff options
author | Klaus Alexander Seistrup | 2023-10-26 21:54:44 +0200 |
---|---|---|
committer | Klaus Alexander Seistrup | 2023-10-26 21:54:44 +0200 |
commit | 8f81cc00047e6c7998e2d27ec68d8beaa4d5015a (patch) | |
tree | f5a9abc2d62da9aea0571843387fbb4b3dbdaba1 | |
parent | edbe7eea406b503a2617eb1204e5a2249d29aade (diff) | |
download | aur-8f81cc00047e6c7998e2d27ec68d8beaa4d5015a.tar.gz |
Let's just use the simplest script possible
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | hx.sh | 14 |
3 files changed, 5 insertions, 17 deletions
@@ -1,7 +1,7 @@ pkgbase = usrbinhx pkgdesc = Provide /usr/bin/hx for the helix editor pkgver = 2023.10.26 - pkgrel = 1 + pkgrel = 2 url = https://codeberg.org/kas/gists arch = any license = AGPL3 @@ -10,6 +10,6 @@ pkgbase = usrbinhx conflicts = hex conflicts = helixbinhx source = hx.sh - sha256sums = 184cdaf013c0b3ac2fe4b95842f8f2ff97ae2fbe38e36e363badc419f9eaffa0 + sha256sums = bc36799721ea4d0c3e1723f02b2b426c345bb180affebc72a529cd3a811f7f9c pkgname = usrbinhx @@ -3,7 +3,7 @@ pkgname='usrbinhx' pkgver='2023.10.26' -pkgrel=1 +pkgrel=2 pkgdesc='Provide /usr/bin/hx for the helix editor' arch=('any') url='https://codeberg.org/kas/gists' @@ -11,7 +11,7 @@ license=('AGPL3') conflicts=('hex' 'helixbinhx') depends=('helix' 'sh') source=('hx.sh') -sha256sums=('184cdaf013c0b3ac2fe4b95842f8f2ff97ae2fbe38e36e363badc419f9eaffa0') +sha256sums=('bc36799721ea4d0c3e1723f02b2b426c345bb180affebc72a529cd3a811f7f9c') package() { install -Dm0755 'hx.sh' "$pkgdir/usr/bin/hx" @@ -1,23 +1,11 @@ #!/bin/sh -ME="${0##*/}" - # Copyright © 2022 Klaus Alexander Seistrup <klaus@seistrup.dk> # Licensed under the GNU Affero General Public License v3+. # # Updated: 2023-10-26 -die() { - printf '%s: %s\n' "$ME" "$*" >&2 - exit 1 -} - -export HELIX_DEFAULT_RUNTIME='/usr/lib/helix/runtime' - -export HELIX_HX='/usr/lib/helix/hx' -test -x "$HELIX_HX" || die 'cannot find helix:' "$HELIX_HX" - -exec "$HELIX_HX" "$@" +exec helix "$@" exit 127 # eof |