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:
parent
7a35873e60
commit
280c1d069b
3 changed files with 126 additions and 2 deletions
3
run.sh
3
run.sh
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue