summaryrefslogtreecommitdiff
path: root/community/mingw32-runtime
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mingw32-runtime
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mingw32-runtime')
-rw-r--r--community/mingw32-runtime/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/mingw32-runtime/PKGBUILD b/community/mingw32-runtime/PKGBUILD
new file mode 100644
index 000000000..43ae147b4
--- /dev/null
+++ b/community/mingw32-runtime/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 39755 2011-02-15 23:16:01Z svenstaro $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Ondrej Jirman <megous@megous.com>
+
+pkgname=mingw32-runtime
+pkgver=3.18
+pkgrel=3
+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=('34b54cb3379f871f0dcd5c20b69b0350')
+
+build()
+{
+ cd $srcdir/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
+
+ make
+ mkdir -p $pkgdir/usr/i486-mingw32/bin
+ make install prefix=$pkgdir/usr/i486-mingw32
+
+ cd $pkgdir
+ rm -rf usr/i486-mingw32/{doc,man}
+ find . -name '*.a' | xargs -rtl1 i486-mingw32-strip -g
+}