28 lines
772 B
Bash
Executable File
28 lines
772 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# URL from where wine is downloaded, must be i686
|
|
wineURL="https://32.arlm.tyzoid.com/i686/community/wine-5.14-1.0-i686.pkg.tar.zst"
|
|
|
|
# Install required packages
|
|
install_package cabextract box86 dos2unix p7zip unzip xdotool
|
|
# Download and install wine
|
|
wineFile="$(mktemp)"
|
|
wget -O "$wineFile" "$wineURL"
|
|
pushd /opt
|
|
sudo tar xf "$wineFile"
|
|
sudo mv usr wine
|
|
sudo cp -r etc/* /etc
|
|
sudo rm -rf etc/
|
|
popd
|
|
|
|
# Create files and links in /usr/local/bin
|
|
sudo mkdir -p /usr/local/bin
|
|
echo -e '#!/bin/bash\nsetarch linux32 -L /opt/wine/bin/wine '"$@" | sudo tee /usr/local/bin/wine > /dev/null
|
|
sudo chmod 755 /usr/local/bin/wine
|
|
for i in wineboot winecfg wineserver ; do
|
|
sudo ln -s /opt/wine/bin/"$i" /usr/local/bin/"$i"
|
|
sudo chmod 755 /usr/local/bin/"$i"
|
|
done
|
|
|