Fixed Fedora deps | Added zstd back to Void linux dep list

This commit is contained in:
optout 2024-03-05 15:58:48 +00:00
parent d801df98a9
commit a66bf54a10
No known key found for this signature in database
GPG Key ID: 13BA4BD4C14170C0

View File

@ -28,17 +28,18 @@ function check_distro(){
case "${distroId,,}" in
*void*)
printf '%s\n' "Detected Void Linux..."
xbps-install -Sy make gcc xz elfutils elfutils-devel flex ncurses-devel openssl openssl-devel argp-standalone gcc-ada mpc libmpc-devel gmp-devel perl
xbps-install -Sy make gcc xz elfutils elfutils-devel flex ncurses-devel openssl openssl-devel argp-standalone gcc-ada mpc libmpc-devel gmp-devel perl zstd
return 0
;;
*debian*|*ubuntu*)
printf '%s\n' "Detected Debian-based Distribution..."
sudo apt-get install build-essential linux-source bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison
sudo apt-get install build-essential linux-source bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison zstd
return 0
;;
*fedora*|*redhat*)
printf '%s\n' "Detected RHEL-based Distribution..."
sudo dnf install binutils /usr/include/{libelf.h,openssl/pkcs7.h} \
/usr/bin/{bc,bison,flex,gcc,git,openssl,make,perl,pahole,zstd}
return 0
;;
*)