1 # Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2 pkgname=mingw-w64-winpthreads
5 pkgdesc='MinGW-w64 winpthreads library'
7 url='http://mingw-w64.sourceforge.net'
9 groups=('mingw-w64-toolchain' 'mingw-w64')
11 makedepends=('svn' 'mingw-w64-gcc-base' 'mingw-w64-binutils' 'mingw-w64-crt' 'mingw-w64-headers-bootstrap')
13 provides=('mingw-w64-headers-bootstrap')
17 options=('!strip' '!buildflags' '!libtool' '!emptydirs')
21 _svntrunk=https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/experimental
25 _targets="i686-w64-mingw32 x86_64-w64-mingw32"
29 msg "Connecting to SVN server...."
31 if [[ -d ${_svnmod}/.svn ]]; then
32 (cd $_svnmod && svn up -r $_svnrev)
34 svn co ${_svntrunk}/${_svnmod} --config-dir ./ -r $_svnrev ${_svnmod}
37 msg "SVN checkout done or server timeout"
38 msg "Starting build..."
40 for _target in ${_targets}; do
41 mkdir -p ${srcdir}/winpthreads-build-${_target} && cd ${srcdir}/winpthreads-build-${_target}
42 ${srcdir}/winpthreads/configure --prefix=/usr/${_target} \
43 --host=${_target} --enable-static --enable-shared
49 for _target in ${_targets}; do
50 cd ${srcdir}/winpthreads-build-${_target}
51 make DESTDIR=${pkgdir} install