diff --git a/build_linux.sh b/build_linux.sh index 9a9a9160ba..f6f8fc01e7 100755 --- a/build_linux.sh +++ b/build_linux.sh @@ -146,6 +146,8 @@ DISTRIBUTION_LIKE=$(awk -F= '/^ID_LIKE=/ {print $2}' /etc/os-release | tr -d '"' # Check for direct distribution match to Ubuntu/Debian if [ "${DISTRIBUTION}" == "ubuntu" ] || [ "${DISTRIBUTION}" == "linuxmint" ] ; then DISTRIBUTION="debian" +elif [ "${DISTRIBUTION}" == "opensuse-tumbleweed" ] ; then + DISTRIBUTION="opensuse-tumbleweed" # Check if distribution is Debian/Ubuntu-like based on ID_LIKE elif [[ "${DISTRIBUTION_LIKE}" == *"debian"* ]] || [[ "${DISTRIBUTION_LIKE}" == *"ubuntu"* ]] ; then DISTRIBUTION="debian" diff --git a/scripts/linux.d/opensuse-tumbleweed b/scripts/linux.d/opensuse-tumbleweed new file mode 100644 index 0000000000..114e25b733 --- /dev/null +++ b/scripts/linux.d/opensuse-tumbleweed @@ -0,0 +1,52 @@ +#!/bin/bash +# these are the openSUSE Tumbleweed Linux specific build functions + +# Additional Dev packages for OrcaSlicer +export REQUIRED_DEV_PACKAGES=( + autoconf + automake + cmake + curl + dbus-1 + eglexternalplatform-devel + kf6-extra-cmake-modules + file + gettext-runtime + git + glew-devel + gstreamer-devel + gstreamermm-devel + gtk3-devel + libcurl-devel + libmspack-devel + libopenssl-devel + libquadmath-devel + libsecret-devel + libspnav-devel + libtool + nanum-fonts + ninja + texinfo + webkit2gtk3-minibrowser + webkit2gtk3-devel + wget + wayland-protocols-devel +) + +if [[ -n "$UPDATE_LIB" ]] +then + echo -n -e "Updating linux ...\n" + NEEDED_PKGS=() + for PKG in "${REQUIRED_DEV_PACKAGES[@]}"; do + sudo zypper se -ix "${PKG}" > /dev/null || NEEDED_PKGS+=("${PKG}") + done + + if [[ "${#NEEDED_PKGS[*]}" -gt 0 ]]; then + sudo zypper refresh && sudo zypper in -y "${NEEDED_PKGS[@]}" + fi + echo -e "done\n" + exit 0 +fi + +export FOUND_GTK3_DEV +FOUND_GTK3_DEV=$(sudo zypper se -ix gtk3-devel)