Split dependency installation scripts into distro specific scripts. This is more reliable than the script trying to figure out which distro is running on its own.
This commit is contained in:
75
wine/install-dependencies-arch.sh
Normal file
75
wine/install-dependencies-arch.sh
Normal file
@ -0,0 +1,75 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Immediately exit if errors are encountered.
|
||||
set -e
|
||||
|
||||
# Wine dependencies installer for Arch Linux
|
||||
# If this fails on your system, please contact storm_dragon@stormux.org
|
||||
|
||||
configure_arch() {
|
||||
packageList=(
|
||||
cabextract
|
||||
curl
|
||||
dialog
|
||||
dos2unix
|
||||
gawk
|
||||
libwbclient
|
||||
unzip
|
||||
w3m
|
||||
wine
|
||||
winetricks
|
||||
wine_gecko
|
||||
wine-mono
|
||||
sdl2
|
||||
ncurses
|
||||
mpg123
|
||||
libpulse
|
||||
libpng
|
||||
libjpeg-turbo
|
||||
gnutls
|
||||
alsa-plugins
|
||||
alsa-lib
|
||||
mesa
|
||||
openal
|
||||
sox
|
||||
sqlite3
|
||||
translate-shell
|
||||
xz
|
||||
gst-plugins-bad
|
||||
gst-plugins-good
|
||||
gst-plugins-ugly
|
||||
gst-libav
|
||||
p7zip
|
||||
xdg-utils
|
||||
)
|
||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||
# Enable multilib
|
||||
sudo sed -i '/^#\[multilib\]$/{{N;s/^#\[multilib\]\n#Include = \/etc\/pacman.d\/mirrorlist$/[multilib]\nInclude = \/etc\/pacman.d\/mirrorlist/;t;P;D}}' /etc/pacman.conf
|
||||
# include lib32 packages.
|
||||
packageList+=(
|
||||
lib32-sdl2
|
||||
lib32-ncurses
|
||||
lib32-mpg123
|
||||
lib32-libpulse
|
||||
lib32-libpng
|
||||
lib32-libjpeg-turbo
|
||||
lib32-gnutls
|
||||
lib32-alsa-plugins
|
||||
lib32-alsa-lib
|
||||
lib32-mesa
|
||||
lib32-openal
|
||||
lib32-gst-plugins-good
|
||||
lib32-gst-plugins-bad
|
||||
lib32-gst-plugins-ugly
|
||||
lib32-gst-libav)
|
||||
fi
|
||||
# Some of these may fail, so do them in a for loop.
|
||||
yay -Syy
|
||||
for i in "${packageList[@]}" ; do
|
||||
yay -S --needed --noconfirm "$i" || true
|
||||
done
|
||||
}
|
||||
|
||||
configure_arch
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user