freebsd-ports/emulators/wine8/files/pkg32.sh
Gerald Pfeifer 5aa9792e66 emulators/wine8: New port, cloning emulators/wine
Wine 9 has been released some weeks ago and it's time to upgrade the
main emulators/wine port. However, there may be some regressions (in
particular around WoW64), so create emulators/wine8 as a clone of the
state before the version upgrade as a fallback. [1]

Since it is rarely, if ever, used, in particular in this context,
remove the MONO option.

Discussed with:	Lexi Winter <lexi@le-fay.org> [1]
2024-03-03 14:00:33 +00:00

20 lines
576 B
Bash

#!/bin/sh -e
if [ "$(id -u)" = 0 ]
then
echo "Don't run this script as root!"
exit 1
fi
I386_ROOT="${WINE_i386_ROOT:-$HOME/.i386-wine-pkg}"
if [ ! -d "$I386_ROOT/usr/share/keys/pkg" ]
then
mkdir -p "$I386_ROOT/usr/share/keys"
ln -s /usr/share/keys/pkg "$I386_ROOT/usr/share/keys/pkg"
fi
ABI=$(pkg config ABI | sed s/amd64/i386/)
# Show what we're going to do, then do it.
echo pkg -o ABI="$ABI" -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir "$I386_ROOT" "$@"
exec pkg -o ABI="$ABI" -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir "$I386_ROOT" "$@"