From ff77db77dbce4222fa59a0fd49e4a3d206663a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Herrmann?= Date: Mon, 6 Apr 2026 08:08:10 +0200 Subject: [PATCH] Add build definitions for cachyos (#12898) Derived from Arch linux.d file but changed a bit to build on CachyOS --- scripts/linux.d/cachyos | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 scripts/linux.d/cachyos diff --git a/scripts/linux.d/cachyos b/scripts/linux.d/cachyos new file mode 100644 index 0000000000..9557c55e62 --- /dev/null +++ b/scripts/linux.d/cachyos @@ -0,0 +1,45 @@ +#!/bin/bash +# these are the CachyOS Linux specific build functions + +# Additional Dev packages for OrcaSlicer +export REQUIRED_DEV_PACKAGES=( + cmake + curl + dbus + eglexternalplatform + extra-cmake-modules + file + gettext + git + glew + gstreamer + gtk3 + libmspack + libsecret + libspnav + mesa + ninja + openssl + texinfo + wayland-protocols + webkit2gtk + wget +) + +if [[ -n "$UPDATE_LIB" ]] +then + echo -n -e "Updating linux ...\n" + NEEDED_PKGS=() + for PKG in "${REQUIRED_DEV_PACKAGES[@]}"; do + pacman -Q "${PKG}" > /dev/null || NEEDED_PKGS+=("${PKG}") + done + + if [[ "${#NEEDED_PKGS[*]}" -gt 0 ]]; then + sudo pacman -Syy --noconfirm "${NEEDED_PKGS[@]}" + fi + echo -e "done\n" + exit 0 +fi + +export FOUND_GTK3_DEV +FOUND_GTK3_DEV=$(pacman -Q gtk3)