Update 10-build.sh

This commit is contained in:
humocs-man
2026-03-26 18:59:43 +01:00
committed by GitHub
parent 2f9bee362d
commit 3b7aedd86c
+64 -37
View File
@@ -1,61 +1,88 @@
#!/usr/bin/bash #!/usr/bin/bash
set -eoux pipefail set -eoux pipefail
############################################################################### ###############################################################################
# Main Build Script # Fedora version (used for RPM Fusion)
############################################################################### ###############################################################################
# Source helper functions FEDORA_VERSION="$(rpm -E %fedora)"
# shellcheck source=/dev/null
source /ctx/build/copr-helpers.sh
# Enable nullglob for all glob operations to prevent failures on empty matches ###############################################################################
shopt -s nullglob # Enable RPM Fusion (free + nonfree)
###############################################################################
dnf5 install -y \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VERSION}.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VERSION}.noarch.rpm
###############################################################################
# Multimedia stack (Mesa freeworld + codecs)
###############################################################################
# Replace Fedora Mesa with freeworld variants
dnf5 swap -y \
mesa-va-drivers mesa-va-drivers-freeworld \
mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
# Install full multimedia group (RPM Fusion maintained)
dnf5 group install -y multimedia \
--with-optional \
--allowerasing
# Explicit codec safety net
dnf5 install -y \
ffmpeg \
ffmpeg-libs \
libavcodec-freeworld \
gstreamer1-libav \
gstreamer1-plugins-bad-freeworld \
gstreamer1-plugins-ugly
###############################################################################
# Virtualization stack (desktop-focused, minimal)
###############################################################################
dnf5 remove -y \
nvtop \
htop
echo "::group:: Install Packages"
# flatpak und just sind im base-main vorhanden, aber wir ergänzen deine Tools
dnf5 install -y \ dnf5 install -y \
fastfetch \
btop \
libvirt \
libvirt-daemon \ libvirt-daemon \
libvirt-daemon-driver-qemu \ libvirt-daemon-driver-qemu \
libvirt-daemon-config-network \ libvirt-daemon-config-network \
libvirt-daemon-kvm \
libvirt-client \ libvirt-client \
qemu-kvm \ qemu-kvm \
qemu-img \ qemu-img \
virt-manager \ virt-manager \
virt-viewer \ virt-viewer
zenity \
usbredir
echo "::endgroup::"
echo "::group:: Installing COSMIC" ###############################################################################
copr_install_isolated "ryanabx/cosmic-epoch" \ # Steam (RPM Fusion nonfree)
cosmic-desktop ###############################################################################
echo "::endgroup::"
dnf5 install -y \
steam \
mesa-dri-drivers.i686 \
mesa-libGL.i686 \
mesa-libEGL.i686
###############################################################################
# Optional: hardware video acceleration helpers
###############################################################################
dnf5 install -y \
libva-utils \
intel-media-driver || true
###############################################################################
# Services
###############################################################################
echo "::group:: System Configuration"
systemctl enable podman.socket
systemctl enable bluetooth.service
systemctl enable libvirtd.service systemctl enable libvirtd.service
systemctl enable virtlogd.service systemctl enable virtlogd.service
systemctl enable podman.socket
systemctl enable bluetooth.service
# Flathub aktivieren ###############################################################################
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \ # Cleanup
# Appstream-Datenbank vorab generieren ###############################################################################
flatpak update --appstream -y && \
# Flatpak-Datenbank initialisieren
flatpak list || true
echo "::endgroup::" dnf5 clean all
shopt -u nullglob
echo "Custom build complete!" echo "Custom build complete!"