@@ -12,11 +12,12 @@ get_latest_gh_release() {
1212# Update & install OS base dependencies
1313buildDeps=" base-devel freetype2 oniguruma wget mesa file zsync appstream xorg-server-xvfb patchelf binutils strace git jq"
1414ghosttyDeps=" gtk4 libadwaita blueprint-compiler gtk4-layer-shell"
15+ rm -rf " /usr/share/libalpm/hooks/package-cleanup.hook"
1516pacman -Syuq --needed --noconfirm --noprogressbar ${buildDeps} ${ghosttyDeps}
1617
1718export ARCH=" $( uname -m) "
1819
19- ZIG_VERSION=" 0.13.0 "
20+ ZIG_VERSION=" #ZIG_VERSION "
2021PANDOC_VERSION=" $( get_latest_gh_release ' jgm/pandoc' ) "
2122MINISIGN_VERSION=" $( get_latest_gh_release ' jedisct1/minisign' ) "
2223SHARUN_VERSION=" $( get_latest_gh_release ' VHSgunzo/sharun' ) "
@@ -55,13 +56,11 @@ pacman -U --noconfirm /tmp/llvm-libs.pkg.tar.zst /tmp/libxml2.pkg.tar.zst
5556
5657# Download & install other dependencies
5758# zig: https://ziglang.org
58- if [ ! -d " /opt/zig-linux-${ARCH} -${ZIG_VERSION} " ]; then
59- rm -rf /opt/zig*
60- unlink /usr/local/bin/zig || true
61- wget " ${ZIG_URL} " -O /tmp/zig-linux.tar.xz
62- tar -xJf /tmp/zig-linux.tar.xz -C /opt
63- ln -s " /opt/zig-linux-${ARCH} -${ZIG_VERSION} /zig" /usr/local/bin/zig
64- fi
59+ rm -rf /opt/zig*
60+ unlink /usr/local/bin/zig || true
61+ wget " ${ZIG_URL} " -O /tmp/zig-linux.tar.xz
62+ tar -xJf /tmp/zig-linux.tar.xz -C /opt
63+ ln -s " /opt/zig-linux-${ARCH} -${ZIG_VERSION} /zig" /usr/local/bin/zig
6564
6665# appimagetool: https://github.com/AppImage/appimagetool
6766rm -rf /usr/local/bin/appimagetool
0 commit comments