# Contributor: Leo # Maintainer: Leo pkgname=mingw-w64-crt pkgver=6.0.0 pkgrel=0 pkgdesc="MinGW-w64 CRT for Windows" options="!check !strip" url="http://mingw-w64.sourceforge.net" arch="x86_64 x86" license="custom" makedepends=" mingw-w64-gcc-base mingw-w64-binutils mingw-w64-headers mingw-w64-headers-bootstrap " source="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2" builddir="$srcdir/mingw-w64-v$pkgver/mingw-w64-crt" case "$CARCH" in x86_64) _target="x86_64-w64-mingw32" _configure_args="--disable-lib32 --enable-lib64" ;; x86) _target="i686-w64-mingw32" _configure_args="--disable-lib64 --enable-lib32" ;; esac # Directory for out-of-tree builds _crtdir="$srcdir/crt-${_target}" prepare() { default_prepare mkdir -p "$_crtdir" } build() { cd "$_crtdir" "$builddir"/configure \ --prefix=/usr/${_target} \ --host=${_target} \ --target=${_target} \ --enable-wildcard \ ${_configure_args} \ CC=${_target}-gcc make } package() { cd "$_crtdir" make DESTDIR="$pkgdir" install } sha512sums="e3d3663e0cb33a16f90b1a33e81b5a30d26f7e34270b14e865c10068f2a2d32da9ef8cbbb0c3fed9c71429ae11c82152ff3b87d81558929b2a4993dc99cfc11e mingw-w64-v6.0.0.tar.bz2"