overlay/dev-util/lua-language-server/files/wrapper.sh
tastytea 643bf03fdc
dev-util/lua-language-server: use prefix eclass for wrapper
Signed-off-by: tastytea <tastytea@tastytea.de>
2022-08-28 00:06:31 +02:00

13 lines
496 B
Bash

#!/bin/sh
# some paths must be writable, so we put them into user-owned directories
DATAPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/lua-language-server"
STATEPATH="${XDG_STATE_HOME:-${HOME}/.local/state}/lua-language-server"
mkdir --parents ${DATAPATH} ${STATEPATH}
exec @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/bin/lua-language-server \
-E @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/main.lua \
--logpath="${STATEPATH}/log" \
--metapath="${DATAPATH}/meta" \
"$@"