updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mingw-w64-winpthreads / PKGBUILD
blobd83bfed7bf636f643d21f8a9f748be09e02f3999
1 # Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2 pkgname=mingw-w64-winpthreads
3 pkgver=0.0.1.20111313
4 pkgrel=1
5 pkgdesc='MinGW-w64 winpthreads library'
6 arch=('any')
7 url='http://mingw-w64.sourceforge.net'
8 license=('custom')
9 groups=('mingw-w64-toolchain' 'mingw-w64')
10 depends=()
11 makedepends=('svn' 'mingw-w64-gcc-base' 'mingw-w64-binutils' 'mingw-w64-crt' 'mingw-w64-headers-bootstrap')
12 optdepends=()
13 provides=('mingw-w64-headers-bootstrap')
14 conflicts=()
15 replaces=()
16 backup=()
17 options=('!strip' '!buildflags' '!libtool' '!emptydirs')
18 source=()
19 md5sums=()
21 _svntrunk=https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/experimental
22 _svnmod=winpthreads
23 _svnrev=4660
25 _targets="i686-w64-mingw32 x86_64-w64-mingw32"
27 build() {
28   cd ${srcdir}
29   msg "Connecting to SVN server...."
31   if [[ -d ${_svnmod}/.svn ]]; then
32     (cd $_svnmod && svn up -r $_svnrev)
33   else
34     svn co ${_svntrunk}/${_svnmod} --config-dir ./ -r $_svnrev ${_svnmod}
35   fi
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
44     make
45   done
48 package() {
49   for _target in ${_targets}; do
50     cd ${srcdir}/winpthreads-build-${_target}
51     make DESTDIR=${pkgdir} install
52   done