Att bygga wine-tkg-git på OpenSUSE Tumbleweed är trist och tidsödande. Detta beror främst på att OpenSUSE inte finns med i listan över operativsystem som har automatisk beroenderesolultion i wine-tkg-gits byggskript. Så jag tänkte att jag skulle skriva ett eget.
#!/bin/bash
sudo zypper in -t pattern devel_basis devel_basis-32bit
sudo zypper in libpulse-devel-32bit \
pipewire-alsa-32bit \
alsa-plugins-32bit \
alsa-plugins-pulse-32bit \
Mesa-libGL-devel-32bit \
vulkan-devel-32bit \
libvulkan_radeon-32bit \
Mesa-libd3d-devel-32bit \
libOSMesa-devel-32bit \
gtk3-devel-32bit \
libva-devel-32bit \
FAudio-devel-32bit \
libXp-devel-32bit \
libX11-devel-32bit \
freetype2-devel-32bit \
libXrender-devel-32bit \
libXext-devel-32bit \
libgnutls-devel-32bit \
libXcursor-devel-32bit \
SDL2-devel-32bit \
libXi-devel-32bit \
libXss-devel-32bit \
libxcb-shape0-32bit \
libXrandr-devel-32bit \
libXfixes-devel-32bit \
libXinerama-devel-32bit \
libXcomposite-devel-32bit \
pcsc-lite-devel-32bit \
libnettle-devel-32bit \
libtasn1-devel-32bit \
libpcap-devel-32bit \
fontconfig-devel-32bit \
libgphoto2-devel-32bit \
libcapi20-devel-32bit \
cups-devel-32bit \
dbus-1-devel-32bit \
dbus-1-glib-devel-32bit \
krb5-devel-32bit \
samba-devel-32bit \
sane-backends-devel-32bit \
libcom_err-devel-32bit \
wayland-devel-32bit \
gstreamer-plugins-base-devel-32bit \
libXxf86vm-devel-32bit \
libffi-devel-32bit \
libv4l-devel-32bit \
gstreamer-devel-32bit \
glib2-devel-32bit \
libOpenCL1-32bit \
libelf-devel-32bit \
liblzma5-32bit \
lzma-sdk-devel \
libzstd-devel-32bit \
ccache \
libsane1-32bit
# pkgconfig
PC_FILES="bzip2.pc gobject-2.0.pc hogweed.pc libdw.pc libidn2.pc liblzma.pc libpcre2-8.pc libunwind.pc orc-0.4.pc p11-kit-1.pc"
for i in $PC_FILES; do
sudo cp /usr/lib64/pkgconfig/$i /usr/lib/pkgconfig;
sudo sed -i 's!lib64!lib!g' /usr/lib/pkgconfig/$i
done
sudo cp /usr/lib64/dbus-1.0/include/dbus/dbus-arch-deps.h /usr/include/dbus-1.0/dbus
# Fix non-existant 32bit devel-packages
sudo ln -s /usr/lib/libp11-kit.so.0 /usr/lib/libp11-kit.so
sudo ln -s /usr/lib/libpcsclite.so.1 /usr/lib/libpcsclite.so
sudo ln -s /usr/lib/libudev.so.1 /usr/lib/libudev.so
sudo ln -s /usr/lib/libgobject-2.0.so.0 /usr/lib/libgobject-2.0.so
sudo ln -s /usr/lib/libidn2.so.0 /usr/lib/libidn2.so
sudo ln -s /usr/lib/libOpenCL.so.1 /usr/lib/libOpenCL.so
sudo ln -s /usr/lib/libpcre2-8.so.0 /usr/lib/libpcre2-8.so
sudo ln -s /usr/lib/libunwind.so.8 /usr/lib/libunwind.so
sudo ln -s /usr/lib/liblzma.so.5 /usr/lib/liblzma.so
sudo ln -s /usr/lib/liborc-0.4.so.0 /usr/lib/liborc-0.4.so
sudo ldconfig
# Fix OpenCL Headers
sudo ln -s /usr/include/CL /usr/include/OpenCL
BUILD_DIR=$HOME/src
INSTALL_PREFIX=/opt/wine
mkdir -p $BUILD_DIR
cd $BUILD_DIR
if [ -e $BUILD_DIR/wine-tkg-git ];then
cd wine-tkg-git
git pull
else
git clone https://github.com/Frogging-Family/wine-tkg-git.git
fi
cd $BUILD_DIR/wine-tkg-git/wine-tkg-git
./non-makepkg-build.sh
# cd $BUILD_DIR/wine-tkg-git/wine-tkg-git/non-makepkg-builds/
# mkdir -p $INSTALL_PREFIX