#!/bin/bash
cd /home/gabry/lfs-repo
cp -pvra tarball_dev tarball_dev.tmp
cd tarball_dev.tmp
cp /home/gabry/lfs-repo/calamares.desktop etc/xdg/autostart/calamares.desktop
tar -xvf /home/gabry/lfs-repo/isotools.tar.xz -C .
arch-chroot . fempkg update
arch-chroot . fempkg install fempkg-keys
arch-chroot . fempkg uninstall hyprland
arch-chroot . fempkg uninstall hyprland-libs
arch-chroot . fempkg uninstall caelestia-shell
arch-chroot . fempkg uninstall caelestia-cli
arch-chroot . fempkg uninstall xdg-desktop-portal-hyprland
arch-chroot . fempkg uninstall gpu-screen-recorder
arch-chroot . fempkg uninstall man-pages
rm -rf "usr/share/doc/*"
rm -rf "usr/share/man/*"
arch-chroot . fempkg install kde-plasma ssh
arch-chroot . femctl enable sshd
arch-chroot . autostrip
ls boot/vmlinuz-* | sed 's|.*/vmlinuz-||' > /tmp/isogen_kernel

tar --xattrs --acls --numeric-owner -cvJpf "FemboyOS-2-$(date)-UNSTABLE".tar.xz .
