diff options
| author | goiabae <goiabae@github.com> | 2021-09-05 21:50:33 -0300 |
|---|---|---|
| committer | Vedang Manerikar <ved.manerikar@gmail.com> | 2022-01-03 08:38:31 +0530 |
| commit | ed1d4fc4b02eaf40fbaa7a1a8a2c59eff2a8555d (patch) | |
| tree | 2d6152ee94a0689c6462e52a7b1718ea92627df7 | |
| parent | 93b948973989c1c6b3eb4f382ce7eb78a39c0fe1 (diff) | |
Add Void Linux OS and package manager to autobuild script
Very simple addition to the autobuild script to include the xbps
package manager and Void Linux.
Closes: politza#685
| -rwxr-xr-x | server/autobuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/autobuild b/server/autobuild index b807c2f..4248979 100755 --- a/server/autobuild +++ b/server/autobuild @@ -408,6 +408,29 @@ os_gentoo() { return 0 } +# Void +os_void() { + if [ -f "/etc/os-release" ]; then + . /etc/os-release + if [ "$NAME" != "void" ]; then + return 1 + fi + else + return 1 + fi + PACKAGES="autoconf + automake + libpng-devel + poppler-devel + poppler-glib-devel + zlib-devel + make + pkgconf" + PKGCMD=xbps-install + PKGARGS="-Sy" + return 0 +} + # By Parameter --os os_argument() { [ -z "$OS" ] && return 1 @@ -422,6 +445,7 @@ os_argument() { gentoo) os_gentoo "$@";; msys2) os_msys2 "$@";; nixos) os_nixos "$@";; + void) os_void "$@";; *) echo "Invalid --os argument: $OS" exit 1 esac || { @@ -447,6 +471,7 @@ os_debian "$@" || \ os_gentoo "$@" || \ os_msys2 "$@" || \ os_nixos "$@" || \ +os_void "$@" || \ { OS_IS_HANDLED= if [ -z "$DRY_RUN" ]; then |
