http://www.winehq.org/pipermail/wine-devel/2013-September/101106.html
  • Download the patches and uncompress
    wget "http://www.winehq.org/pipermail/wine-devel/attachments/20130902/62c705fb/attachment-0001.bin" -O cs.tar.bz2
    tar xvjf cs.tar.bz2
  • Download wine-1.7.1 sources and uncompress the tarball
    wget "http://sourceforge.net/projects/wine/files/Source/wine-1.7.1.tar.bz2/download" -O wine-1.7.1.tar.bz2
    tar xvjf wine-1.7.1.tar.bz2
  • Apply patches
    cd wine-1.7.1
    for file in $(ls ../cs/*);do patch -p1 < $file;done > patch.log 2>&1