1. Install 7-Zip, NSIS, Subversion and CMake
2. Create initial directory structure
C:/devel
|--mingw32
|--msys
|--mingw32-libs
|--qt5
3. Download i686-11.2.0-release-posix-dwarf-rt_v9-rev4.7z from here and unpack it to C:/devel/mingw32
4. Download msys+7za+wget+svn+git+mercurial+cvs-rev13.7z from here and unpack it to C:/devel/msys
5. Create environment variables PATH and QTDIR with the following content:
PATH=C:\devel\msys\bin;C:\devel\qt5\bin;C:\devel\mingw32\bin;C:\devel\mingw32\opt\bin;C:\devel\mingw32-libs\bin;C:\Program Files (x86)\7-Zip;C:\Program Files\7-Zip;C:\Program Files (x86)\Subversion\bin
QTDIR=C:\devel\qt5
5. Download qmmp build scripts
cd C:\devel
svn co http://svn.code.sf.net/p/qmmp-dev/code/trunk/extras/package/win32/ qmmp-win32
6. Check paths in the following files:
C:\devel\qmmp-win32\start_sh.cmd
C:\devel\qmmp-win32\qmmp-1-win32.sh
C:\devel\qmmp-win32\contrib\mingw-libs.sh
C:\devel\qmmp-win32\contrib\start_sh.cmd
7. Install all required libraries. You should start C:\devel\qmmp-win32\contrib\start_sh.cmd and execute the following commands:
./mingw-libs.sh --download
./mingw-libs.sh --install
8. Install Qt libraries. You should start C:\devel\qmmp-win32\contrib\start_sh.cmd and execute the following commands:
./qt5.sh --download
./qt5.sh --install
9. Compile and prepare qmmp package. You should start C:\devel\qmmp-win32\start_sh.cmd and execute the following commands:
./qmmp-1-win32.sh --download
./qmmp-1-win32.sh --install
10. All required files will be in the directory C:\devel\qmmp-win32\tmp\qmmp-distr. Add extra files, modify qmmp.nsi and create package using NSIS installed before.