diff options
| author | Gabriel Santos <gabrielsantosdesouza@disroot.org> | 2025-12-29 03:39:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-29 09:09:26 +0530 |
| commit | 4b78120e5f7e3ec38e198b5638c3a581bdc9b882 (patch) | |
| tree | 470b78650885802987ad26ae1ef517a413768f87 /server/autobuild | |
| parent | 1cde7b311d55b778bb4c6886993b8e57a7e6b105 (diff) | |
feat(server): add Nobara Linux support
Add build support for Nobara Linux, a Fedora derivative.
- Add os_nobara() detection function (checks /etc/nobara-release)
- Uses same packages as Fedora (dnf package manager)
- Add to --os argument handling and auto-detection chain
Closes: #301
Author: @gs-101
Diffstat (limited to 'server/autobuild')
| -rwxr-xr-x | server/autobuild | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/server/autobuild b/server/autobuild index 46c254e..1d76820 100755 --- a/server/autobuild +++ b/server/autobuild @@ -503,6 +503,30 @@ os_alpine() { return 0 } +# Nobara +os_nobara() { + if ! [ -e "/etc/nobara-release" ]; then + return 1 + fi + PKGCMD=dnf + PKGARGS=install + PACKAGES="autoconf + automake + gcc + libpng-devel + make + poppler-devel + poppler-glib-devel + zlib-devel" + VERSION=$(source_var /etc/os-release VERSION_ID) + if [ -n "$VERSION" ] && [ "$VERSION" -ge 26 ]; then + PACKAGES="$PACKAGES pkgconf" + else + PACKAGES="$PACKAGES pkgconfig" + fi + return 0 +} + # By Parameter --os os_argument() { [ -z "$OS" ] && return 1 @@ -521,6 +545,7 @@ os_argument() { void) os_void "$@";; opensuse) os_opensuse "$@";; alpine) os_alpine "$@";; + nobara) os_nobara "$@";; *) echo "Invalid --os argument: $OS" exit 1 esac || { @@ -551,6 +576,7 @@ os_nixos "$@" || \ os_void "$@" || \ os_opensuse "$@" || \ os_alpine "$@" || \ +os_nobara "$@" || \ { OS_IS_HANDLED= if [ -z "$DRY_RUN" ]; then |
