-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwine
executable file
·32 lines (27 loc) · 1.16 KB
/
wine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh -e
TARGET="$(realpath "$0")"
PREFIX="usr/local/$(basename $(dirname $(dirname ${TARGET})))"
LOCALBASE="$(dirname $(dirname $(dirname $(dirname $(dirname $(dirname $TARGET))))))"
I386_ROOT="${WINE_i386_ROOT:-$LOCALBASE/i386}"
export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH:+$LIBGL_DRIVERS_PATH:}/$PREFIX/lib/dri:/$PREFIX/lib32/dri:$I386_ROOT/$PREFIX/lib/dri"
export LD_32_LIBRARY_PATH="${LD_32_LIBRARY_PATH:+$LD_32_LIBRARY_PATH:}$I386_ROOT/$PREFIX/lib/wine:/usr/local/lib32:$I386_ROOT/usr/local/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$LOCALBASE/amd64/$PREFIX/lib/wine:/usr/local/lib:$LOCALBASE/amd64/$PREFIX/lib"
for d in "$I386_ROOT/$PREFIX"/llvm*/lib
do
if [ -d "$d" ]
then
export LD_32_LIBRARY_PATH="$LD_32_LIBRARY_PATH:$d"
fi
done
export LD_32_LIBRARY_PATH_RPATH=y
export LD_LIBRARY_PATH_RPATH=y
export LD_32_LIBMAP="
libgcc_s.so.1 /usr/lib32/libgcc_s.so.1
$PREFIX/lib/libvulkan_intel.so $I386_ROOT/$PREFIX/lib/libvulkan_intel.so
$PREFIX/lib/libvulkan_radeon.so $I386_ROOT/$PREFIX/lib/libvulkan_radeon.so
$LD_32_LIBMAP"
if [ -z "$WINE_NO_WOW64" ]
then
export WINESERVER="${TARGET}server"
fi
exec "$I386_ROOT/$PREFIX/bin/wine" "$@"