added cargo install to package managers

This commit is contained in:
Václav Šmejkal 2024-01-23 21:59:20 +01:00
parent 2f64743052
commit 553d9732e8
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -29,9 +29,13 @@ ARCH_GENTOO_COMMON="$COMMON json-c curl libgit2"
# Get COMMAND # Get COMMAND
if [[ $DISTRO == "Arch" ]]; then if [[ $DISTRO == "Arch" ]]; then
COMMAND="pacman -S --needed --noconfirm $ARCH_GENTOO_COMMON libyaml cargo" COMMAND="pacman -S --needed --noconfirm $ARCH_GENTOO_COMMON libyaml rustup"
COMMAND="$COMMAND && pacman -S --needed --noconfirm cargo"
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev cargo" COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev rustup"
COMMAND="$COMMAND && apt install -y cargo"
elif [[ $DISTRO == "Gentoo" ]]; then elif [[ $DISTRO == "Gentoo" ]]; then
COMMAND="emerge -vn $ARCH_GENTOO_COMMON dev-libs/libyaml" COMMAND="emerge -vn $ARCH_GENTOO_COMMON dev-libs/libyaml"