# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Maintainer: Ondrej Jirman pkgname=mingw32-runtime pkgver=3.15.2 pkgrel=1 arch=(i686 x86_64) pkgdesc="mingw32 run-time library" makedepends=(mingw32-w32api mingw32-gcc) options=(!strip) license=(LGPL) url="http://www.mingw.org/" source=(http://downloads.sourceforge.net/mingw/mingwrt-$pkgver-mingw32-src.tar.gz) md5sums=('7bf0525f158213f3ac990ea68a5ec34d') build() { cd $startdir/src/mingwrt-$pkgver-mingw32 sed -i "s%\r%%g" `find . -type f` sed -i -e "s%^W32API_INCLUDE=.*%W32API_INCLUDE=-I/usr/i486-mingw32/include%" `find -type f -name 'configure'` export CFLAGS="-mms-bitfields" ./configure \ --prefix=/usr/i486-mingw32 \ --target=i486-mingw32 \ --host=i486-mingw32 \ --build=$CHOST \ || exit 1 make || exit 1 make install prefix=$startdir/pkg/usr/i486-mingw32 || exit 1 cd $startdir/pkg rm -rf usr/i486-mingw32/{doc,man} find . -name '*.a' | xargs -rtl1 i486-mingw32-strip -g }