1 # Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2 pkgname=mingw-w64-headers-base
5 pkgdesc="MinGW-w64 headers for Windows (bootstrap)"
7 url="http://mingw-w64.sourceforge.net"
9 groups=('mingw-w64-bootstrap' 'mingw-w64')
13 provides=('mingw-w64-headers-bootstrap')
14 conflicts=('mingw-w64-headers' 'mingw-w64-winpthreads')
17 options=('!strip' '!libtool' '!emptydirs')
18 source=(http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.gz)
19 md5sums=('ebb650e66f18f242676a53e0de05f3a9')
21 _targets="i686-w64-mingw32 x86_64-w64-mingw32"
24 for _target in ${_targets}; do
25 msg "Configuring ${_target} headers"
26 mkdir -p ${srcdir}/headers-${_target} && cd ${srcdir}/headers-${_target}
27 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-headers/configure --prefix=/usr --enable-sdk=all --host=${_target}
32 for _target in ${_targets}; do
33 msg "Installing ${_target} headers"
34 cd ${srcdir}/headers-${_target}
35 make DESTDIR=${pkgdir} install
38 msg "Installing MinGW-w64 licenses"
39 install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/COPYING.MinGW-w64/COPYING.MinGW-w64.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.MinGW-w64.txt"
40 install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.MinGW-w64-runtime.txt"
41 install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-headers/ddk/readme.txt "${pkgdir}/usr/share/licenses/${pkgname}/ddk-readme.txt"
42 install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-headers/direct-x/COPYING.LIB "${pkgdir}/usr/share/licenses/${pkgname}/direct-x-COPYING.LIB"
43 install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-headers/direct-x/readme.txt "${pkgdir}/usr/share/licenses/${pkgname}/direct-x-readme.txt"