Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Void linux experimental support #1048

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ function install_pkg {
dnf install "$package"
elif [[ "$PACKAGE_MANAGER" == "brew" ]]; then
brew install "$package"
elif [[ "$PACKAGE_MANAGER" == "xbps-install" ]]; then
xbps-install "$package"
fi
fi
}

function install_pkg_config {
PACKAGE_MANAGER=$1
#Differently named packages for pkg-config
if [[ "$PACKAGE_MANAGER" == "apt-get" ]] || [[ "$PACKAGE_MANAGER" == "dnf" ]]; then
if [[ "$PACKAGE_MANAGER" == "apt-get" ]] || [[ "$PACKAGE_MANAGER" == "dnf" ]] || [[ "$PACKAGE_MANAGER" == "xbps-install" ]]; then
install_pkg pkg-config "$PACKAGE_MANAGER"
fi
if [[ "$PACKAGE_MANAGER" == "pacman" ]]; then
Expand All @@ -175,6 +177,9 @@ function install_pkg_config {
if [[ "$PACKAGE_MANAGER" == "brew" ]] || [[ "$PACKAGE_MANAGER" == "apk" ]] || [[ "$PACKAGE_MANAGER" == "yum" ]]; then
install_pkg pkgconfig "$PACKAGE_MANAGER"
fi
if [[ "$PACKAGE_MANAGER" == "dnf" ]]; then
install_pkg pkg-config "$PACKAGE_MANAGER"
fi
}

function install_openssl_dev {
Expand All @@ -186,7 +191,7 @@ function install_openssl_dev {
if [[ "$PACKAGE_MANAGER" == "apt-get" ]]; then
install_pkg libssl-dev "$PACKAGE_MANAGER"
fi
if [[ "$PACKAGE_MANAGER" == "yum" ]] || [[ "$PACKAGE_MANAGER" == "dnf" ]]; then
if [[ "$PACKAGE_MANAGER" == "yum" ]] || [[ "$PACKAGE_MANAGER" == "dnf" ]] || [[ "$PACKAGE_MANAGER" == "xbps-install" ]]; then
install_pkg openssl-devel "$PACKAGE_MANAGER"
fi
if [[ "$PACKAGE_MANAGER" == "pacman" ]] || [[ "$PACKAGE_MANAGER" == "brew" ]]; then
Expand All @@ -210,6 +215,9 @@ function install_gcc_powerpc_linux_gnu {
if [[ "$PACKAGE_MANAGER" == "apt-get" ]] || [[ "$PACKAGE_MANAGER" == "yum" ]]; then
install_pkg gcc-powerpc-linux-gnu "$PACKAGE_MANAGER"
fi
if [[ "$PACKAGE_MANAGER" == "xbps-install" ]]; then
install_pkg cross-powerpc-linux-gnu "$PACKAGE_MANAGER"
fi
#if [[ "$PACKAGE_MANAGER" == "pacman" ]]; then
# install_pkg powerpc-linux-gnu-gcc "$PACKAGE_MANAGER"
#fi
Expand Down Expand Up @@ -252,7 +260,7 @@ function install_dotnet {
elif [ "$PACKAGE_MANAGER" == "apt-get" ]; then
install_pkg gettext "$PACKAGE_MANAGER"
install_pkg zlib1g "$PACKAGE_MANAGER"
elif [ "$PACKAGE_MANAGER" == "yum" ] || [ "$PACKAGE_MANAGER" == "dnf" ]; then
elif [ "$PACKAGE_MANAGER" == "yum" ] || [ "$PACKAGE_MANAGER" == "dnf" ] || [ "$PACKAGE_MANAGER" == "xbps-install" ]; then
install_pkg icu "$PACKAGE_MANAGER"
install_pkg zlib "$PACKAGE_MANAGER"
elif [ "$PACKAGE_MANAGER" == "pacman" ]; then
Expand Down Expand Up @@ -552,6 +560,9 @@ if [[ "$(uname)" == "Linux" ]]; then
elif command -v dnf &>/dev/null; then
echo "WARNING: dnf package manager support is experimental"
PACKAGE_MANAGER="dnf"
elif command -v xbps-install &>/dev/null; then
echo "WARNING: xbps package manager support is experimental"
PACKAGE_MANAGER="xbps-install"
else
echo "Unable to find supported package manager (yum, apt-get, dnf, or pacman). Abort"
exit 1
Expand Down