If you have Wine installed through package management, the wine binary is located in /usr/bin. Then just compile the patched Wine version.
You can apply the patches and compile Wine. After the following two commands you can test Wine from the build directory:
./configure
make
To install Wine (optional if you plan on running Wine from the build directory). If you run this command, thewine binary usually installs to /usr/local/bin. If you want to define the install location, you can use the configure parameter, for example: ./configure --prefix=/opt/wine157 which installs Wine to /opt/wine157
sudo make install
Example (on 64 bit system):
wget http://mirrors.ibiblio.org/wine/source/1.5/wine-1.5.7.tar.bz2
tar -xvf wine-1.5.7.tar.bz2
cd wine-1.5.7
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0002-Re-generate-some-files.txt
patch -p1 < 0001*.txt
patch -p1 < 0002*.txt
./configure --enable-win64
make
To show the Wine version from the build directory:
./wine64 --version
Installation:
sudo make install
Uninstall:
sudo make uninstall
See: