updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / mingw-w64-headers-base / PKGBUILD
blobd8ad0881eb7502b4c8565d1a9a5fd4758a121cf3
1 # Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2 pkgname=mingw-w64-headers-base
3 pkgver=2.0.1
4 pkgrel=1
5 pkgdesc="MinGW-w64 headers for Windows (bootstrap)"
6 arch=('any')
7 url="http://mingw-w64.sourceforge.net"
8 license=('custom')
9 groups=('mingw-w64-bootstrap' 'mingw-w64')
10 depends=()
11 makedepends=()
12 optdepends=()
13 provides=('mingw-w64-headers-bootstrap')
14 conflicts=('mingw-w64-headers' 'mingw-w64-winpthreads')
15 replaces=()
16 backup=()
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"
23 build() {
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}
28   done
31 package() {
32   for _target in ${_targets}; do
33     msg "Installing ${_target} headers"
34     cd ${srcdir}/headers-${_target}
35     make DESTDIR=${pkgdir} install
36   done
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"