mirror of
https://github.com/blazblue547-afk/aero3.git
synced 2026-12-02 14:24:17 -05:00
Initial AeroOS source
This commit is contained in:
commit
b27732ad89
42 files changed
+3775
No files matched your search
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/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"
|
||||
Reference in new issue
Block a user