forked from RenxoAr/ao-libre-linux
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dependencies.sh
139 lines (127 loc) · 4.15 KB
/
dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/sh
distro=$(head -n 1 /etc/os-release | cut -d "=" -f 2 | cut -d \" -f 2)
version=$(grep "VERSION_ID" /etc/os-release | cut -d "=" -f 2 | cut -d \" -f 2)
codename=$(grep "VERSION_CODENAME" /etc/os-release | cut -d "=" -f 2 | cut -d \" -f 2)
libaud32deb="libfaudio0_20.01-0~buster_i386.deb"
libaud64deb="libfaudio0_20.01-0~buster_amd64.deb"
libaud32ub="libfaudio0_19.07-0~bionic_i386.deb"
libaud64ub="libfaudio0_19.07-0~bionic_amd64.deb"
# Para Debian:
# wget "https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/i386/${libaud32deb}"
# wget "https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/amd64/${libaud64deb}"
if [ "${distro}" = "Ubuntu" ] || [ "${distro}" = "KDE neon" ]; then
sudo dpkg --add-architecture i386
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
echo "deb https://dl.winehq.org/wine-builds/ubuntu/ ${codename} main" | sudo tee -a /etc/apt/sources.list
if [ "${version}" = "18.04" ] || [ "${version}" = "16.04" ]; then
wget "https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/${libaud32ub}"
wget "https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/${libaud64ub}"
sudo dpkg -i "${libaudio32ub}"
sudo dpkg -i "${libaudio64ub}"
fi
sudo apt-get update
sudo apt-get install -y winehq-stable wine-stable wine-stable-amd64 wine-stable-i386 \
winetricks \
gcc-multilib \
cabextract \
libasound2:i386 \
libasound2-plugins:i386 \
libpulse0:i386 \
libopenal1:i386 \
libdbus-1-dev:i386 \
libfontconfig1-dev:i386 \
libfreetype-dev:i386 \
libgnutls28-dev:i386 \
libgnutls30:i386 \
libjpeg-dev:i386 \
libpng-dev:i386 \
libtiff-dev:i386 \
libunwind-dev:i386 \
libxml2-dev:i386 \
libncurses-dev:i386 \
libncurses5:i386 \
libfaudio-dev:i386 \
libgstreamer1.0-dev:i386 \
libmpg123-0:i386 \
libmpg123-dev:i386 \
libsdl2-dev:i386 \
libsdl2-2.0-0:i386 \
libudev-dev:i386 \
libudev1:i386 \
liblcms2-dev:i386 \
libcups2:i386 \
libcups2-dev:i386 \
libglu1-mesa:i386 \
libglu1-mesa-dev:i386 \
libgsm1:i386 \
libgsm1-dev:i386 \
libgssapi-krb5-2:i386 \
libkrb5-3:i386 \
libkrb5-dev:i386 \
libusb-dev:i386 \
libusb-1.0-0:i386 \
libv4l-0:i386 \
libv4l-dev:i386 \
libxcomposite1:i386 \
libxinerama1:i386 \
libgtk2.0-0:i386 \
libidn11:i386 \
libp11-kit0:i386 \
libtasn1-6:i386 \
libnettle7:i386 \
libgmp10:i386 \
libkeyutils1:i386 \
libldap-2.4-2:i386 \
libssl1.1:i386 \
libgdk-pixbuf2.0-0:i386 \
libpango-1.0-0:i386 \
libxft2:i386 \
libcairo2:i386 \
libpixman-1-0:i386 \
libthai0:i386 \
libdatrie1:i386 \
libatk1.0-0:i386 \
libltdl7:i386 \
gstreamer1.0-plugins-good:i386 \
gstreamer1.0-plugins-bad:i386 \
gstreamer1.0-plugins-ugly:i386 \
gstreamer1.0-pulseaudio:i386
elif [ "${distro}" = "Manjaro Linux" ]; then
sudo pacman -S --needed \
lib32-gst-plugins-base \
lib32-gst-plugins-base-libs \
lib32-alsa-plugins \
lib32-libpulse \
lib32-openal \
gcc-multilib \
lib32-libxcomposite \
lib32-sdl \
lib32-libxinerama \
lib32-gtk2 \
lib32-libcups \
lib32-gnutls \
lib32-libidn \
lib32-p11-kit \
lib32-libtasn1 \
lib32-nettle \
lib32-gmp \
lib32-krb5 \
lib32-keyutils \
lib32-libldap \
lib32-openssl \
lib32-e2fsprogs \
lib32-gdk-pixbuf2 \
lib32-pango \
lib32-libxft \
lib32-cairo \
lib32-pixman \
lib32-libthai \
lib32-libdatrie \
lib32-atk \
lib32-mpg123 \
lib32-libltdl \
wine \
wine-mono \
wine_gecko \
winetricks
fi