From 774b7f59e6917849656aaf75a801381a5726fce6 Mon Sep 17 00:00:00 2001 From: tar Date: Thu, 28 Mar 2024 14:23:34 +0100 Subject: [PATCH] Update wine build script --- wine-build-debian12.sh | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/wine-build-debian12.sh b/wine-build-debian12.sh index 03ae0c4..c4782ca 100755 --- a/wine-build-debian12.sh +++ b/wine-build-debian12.sh @@ -3,7 +3,7 @@ # RUN AS NORMAL USER! X_BIT=32 -X_COMMIT=ff1642f32cfcd2efd8d60be1a8cb432d393587c7 +X_COMMIT=fd1153552d7 X_PREFIX=$HOME/.local # default is /usr/local info() { @@ -18,7 +18,6 @@ error() { echo -e "${RED}$1${NC}" } - user=$(whoami) if [ $user == root ]; then error "You are using a root account. Script is designed to run under a normal user" @@ -28,7 +27,7 @@ fi info 'Install 32-bit only? (y/N)? ' read answer -if [ "$answer" != "${answer#[Yy]}" ] ;then +if [ "$answer" != "${answer#[Yy]}" ] ;then X_BIT=32 info "Installing 32-bit only" else @@ -48,7 +47,8 @@ sudo apt install -y \ flex \ bison \ gettext \ - cabextract + cabextract \ + winbind # 32-bit toolchain, needed for 32-bit builds sudo apt install -y gcc-multilib @@ -102,6 +102,8 @@ if [ $X_BIT == 64 ]; then sudo apt install -y ocl-icd-opencl-dev # libnetapi for Samba NetAPI support sudo apt install -y samba-dev + # Kerberos support + sudo apt install libkrb5-dev fi sudo apt install -y libpulse-dev:i386 \ @@ -126,7 +128,13 @@ sudo apt install -y libpulse-dev:i386 \ libvulkan-dev:i386 \ libxkbregistry-dev:i386 \ ocl-icd-opencl-dev:i386 \ - samba-dev:i386 + samba-dev:i386 \ + libkrb5-dev:i386 + +sudo apt install -y gstreamer1.0-plugins-good:i386 +sudo apt install -y gstreamer1.0-plugins-ugly:i386 +sudo apt install -y gstreamer1.0-plugins-good +sudo apt install -y gstreamer1.0-plugins-ugly cd ~/Public @@ -146,7 +154,7 @@ if [ $X_BIT == 64 ]; then cd wine64 ../wine/configure CC="ccache gcc" CROSSCC="ccache x86_64-w64-mingw32-gcc" --enable-win64 -prefix=$X_PREFIX --disable-tests info "Press enter to proceed with compiling wine 64 bit"; read - make + make -j$(nproc) cd .. WoW='--with-wine64=../wine64' fi @@ -156,7 +164,7 @@ cd wine32 PKG_CONFIG_PATH=/usr/lib/pkgconfig ../wine/configure CC="ccache gcc" CROSSCC="ccache i686-w64-mingw32-gcc" -prefix=$X_PREFIX --disable-tests $WoW info "Press enter to proceed with compiling wine 32 bit"; read -make +make -j$(nproc) cd $HOME/.local/bin wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks @@ -183,11 +191,11 @@ info "REBOOT NOW and then read the notes below" # wine start /unix path_to_installer # winefile OR wine explorer # wine explorer /desktop=name,1024x768 program.exe +# sudo mount -o loop /media/tar/d/games/Unreal\ Turnament\ 2004/ut3.iso /home/tar/cd-rom/three +# sudo mount -o loop -t iso9660 /media/tar/d/games/hmm5_tribes_of_the_east.mdf /home/tar/cd-rom/one # references: # https://wiki.winehq.org/Building_Wine # https://wiki.winehq.org/Winetricks # https://wiki.winehq.org/FAQ # https://wiki.archlinux.org/title/wine - -