d870909392
along with the restructuring of the sub-packages this will allow installing both a wine and wine-32bit package on x86_64 hosts to be able to execute both 32 bit and 64 bit Windows binaries [skip ci]
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
#!/bin/sh -e
|
|
# Based on the Debian wrapper script written by Jens Reyer and Michael Gilbert
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
wine32=/usr/libexec/wine/wine
|
|
wine64=/usr/libexec/wine/wine64
|
|
|
|
wine32_hint () {
|
|
echo "it looks like wine-32bit is missing, you should install it."
|
|
if uname -a | grep "x86_64" > /dev/null && xbps-query -l | grep void-repo-multilib > /dev/null; then
|
|
echo "the multilib repository needs to be enabled first. as root, please"
|
|
echo "execute \"xbps-install -S void-repo-multilib && xbps-install -S wine-32bit\""
|
|
else
|
|
echo "as root, please execute \"xbps-install -S wine-32bit\""
|
|
fi
|
|
}
|
|
|
|
if test -x $wine32; then
|
|
wine=$wine32
|
|
elif test -x $wine64; then
|
|
wine=$wine64
|
|
if test -z "$WINELOADER"; then
|
|
export WINELOADER=$wine64
|
|
fi
|
|
case "x$WINEDEBUG" in
|
|
x-all*|x*,-all*|x*err-all*)
|
|
;;
|
|
*)
|
|
wine32_hint >&2
|
|
;;
|
|
esac
|
|
else
|
|
echo "error: unable to find wine executable. this shouldn't happen." >&2
|
|
exit 1
|
|
fi
|
|
|
|
if test -z "$WINEDEBUG"; then
|
|
export WINEDEBUG=fixme-all
|
|
fi
|
|
|
|
exec $wine "$@"
|