# wine/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] configure = none license = Same as "wine32" and "wine64" tmpsize = 1M unpack = none #--------------------------------------------------------------------- [depends] wine32 wine64 #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin SD=$PKGDIR_SPECIAL mkdir -p $BINDIR && cd $BINDIR cp -p $SD/wine.wrapper.in wine cp -p $SD/winetricks winetricks.bin #--------------------------------------------------------------------- cat > winetricks32 << 'END' BINDIR=/glibc32/pkg/wine32/bin export PATH=$BINDIR:$PATH export WINEPREFIX=$HOME/.wine32 exec winetricks.bin $* END #--------------------------------------------------------------------- cat > winetricks64 << 'END' ERROR32=no if [ "@$BOOTARCH" == "@glibc32" ]; then ERROR32=yes; fi if [ "@$BOOTARCH" == "@musl32" ]; then ERROR32=yes; fi if [ "@$ERROR32" == "@yes" ]; then echo "Error: Can't run winetricks64 from a 32-bit distro" exit 1 fi BINDIR=/glibc64/pkg/wine64/bin export PATH=$BINDIR:$PATH export WINEPREFIX=$HOME/.wine64 exec winetricks.bin $* END #--------------------------------------------------------------------- cat > winetricks << 'END' cat << 'ENDUSAGE' Usage: Please use one of the following: winetricks32 - For 32-bit WINE in your $HOME/.wine32 tree winetricks64 - For 64-bit WINE in your $HOME/.wine64 tree ENDUSAGE exit 1 END #--------------------------------------------------------------------- cat > winecfg32 << 'END' BINDIR=/glibc32/pkg/wine32/bin export WINEPREFIX=$HOME/.wine32 export PATH=$BINDIR/bin:$PATH exec $BINDIR/winecfg $* END #--------------------------------------------------------------------- cat > winecfg64 << 'END' ERROR32=no if [ "@$BOOTARCH" == "@glibc32" ]; then ERROR32=yes; fi if [ "@$BOOTARCH" == "@musl32" ]; then ERROR32=yes; fi if [ "@$ERROR32" == "@yes" ]; then echo "Error: Can't run winecfg64 from a 32-bit distro" exit 1 fi BINDIR=/glibc64/pkg/wine64/bin export PATH=$BINDIR:$PATH export WINEPREFIX=$HOME/.wine64 exec $BINDIR/winecfg $* END #--------------------------------------------------------------------- cat > winecfg << 'END' cat << 'ENDUSAGE' Usage: Please use one of the following: winecfg32 - For 32-bit WINE in your $HOME/.wine32 tree winecfg64 - For 64-bit WINE in your $HOME/.wine64 tree ENDUSAGE exit 1 END #--------------------------------------------------------------------- ln -nsf wine wine32 ln -nsf wine wine64 chmod 755 wine* #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] Same as "wine32". #--------------------------------------------------------------------- [history] Same as "wine32".