mirror of
https://github.com/blazblue547-afk/aero3.git
synced 2026-12-02 14:24:17 -05:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|||
|
|
# scripts/06-desktop.sh — copy compositor source into the tree, build the
|
||
|
|
# Wayland/wlroots desktop stack + aerowm inside the chroot.
|
||
|
|
source "$(dirname "${BASH_SOURCE[0]}")/lib/common.sh"
|
||
|
|
require_root
|
||
|
|
LFS="$AEROS_ROOT"
|
||
|
|
|
||
|
|
trap 'mountpoint -q "$LFS/sources" && umount -l "$LFS/sources"; umount_vkfs 2>/dev/null || true' EXIT
|
||
|
|
|
||
|
|
step "Wayland desktop + aerowm compositor"
|
||
|
|
mount_vkfs
|
||
|
|
mkdir -p "$LFS/sources"
|
||
|
|
mountpoint -q "$LFS/sources" || mount --bind "$AEROS_SOURCES" "$LFS/sources"
|
||
|
|
|
||
|
|
# stage compositor source into /usr/src/aerowm inside the new system
|
||
|
|
log "installing aerowm source into /usr/src/aerowm"
|
||
|
|
rm -rf "$LFS/usr/src/aerowm"
|
||
|
|
mkdir -p "$LFS/usr/src/aerowm"
|
||
|
|
cp -a "$AEROS_TOP/desktop/aerowm/." "$LFS/usr/src/aerowm/"
|
||
|
|
|
||
|
|
install -m755 "$AEROS_TOP/packages/chroot-buildtools.sh" "$LFS/root/build-tools.sh"
|
||
|
|
install -m755 "$AEROS_TOP/packages/chroot-desktop.sh" "$LFS/root/build-desktop.sh"
|
||
|
|
|
||
|
|
ENVS="MAKEFLAGS='-j${AEROS_JOBS}'"
|
||
|
|
in_chroot "$ENVS /root/build-tools.sh" # ensure ninja/meson exist
|
||
|
|
in_chroot "$ENVS /root/build-desktop.sh"
|
||
|
|
|
||
|
|
mountpoint -q "$LFS/sources" && umount -l "$LFS/sources" || true
|
||
|
|
umount_vkfs
|
||
|
|
ok "desktop stack + compositor built"
|