Make scripts arch-aware; add bootstrap-deps.sh

Detect the multiarch libdir via cc instead of hardcoding x86_64-linux-gnu
so run.sh and build-casilda.sh work on aarch64. build-casilda.sh now
exports PKG_CONFIG_PATH/LD_LIBRARY_PATH/GI_TYPELIB_PATH to the ~/.local
prefix so meson finds the source-built gtk4/wlroots. Add bootstrap-deps.sh
to build those deps (xkbcommon 1.8.1, wlroots 0.20.1, gtk4 4.22.4) from
source into ~/.local; idempotent and skips already-installed versions.
This commit is contained in:
Andrew Hamilton 2026-08-13 21:20:20 +10:00
parent 7a35873e60
commit 280c1d069b
3 changed files with 126 additions and 2 deletions

3
run.sh
View file

@ -2,7 +2,8 @@
set -e
dir="$(CDPATH= cd -- "$(dirname "$0")" && pwd)"
libdir="$HOME/.local/lib/x86_64-linux-gnu"
multiarch="$(cc -print-multiarch 2>/dev/null || echo x86_64-linux-gnu)"
libdir="$HOME/.local/lib/$multiarch"
export GI_TYPELIB_PATH="$libdir/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
export LD_LIBRARY_PATH="$libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"