1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: napa3um@gmail.com
3 pkgname=mingw32-zlib-static
7 license=('custom:zlib')
8 pkgdesc="A compression/decompression Library (mingw32)"
9 makedepends=('mingw32-gcc')
10 conflicts=('mingw32-zlib')
11 provides=('mingw32-zlib')
12 url="http://www.zlib.net/"
13 source=(http://www.zlib.net/zlib-$pkgver.tar.gz)
14 md5sums=('c735eab2d659a96e5a594c9e8541ad63')
15 options=(!strip !buildflags)
18 cd $srcdir/zlib-$pkgver
20 sed -ie "s,dllwrap,i486-mingw32-dllwrap," win32/Makefile.gcc
22 ./configure --prefix=/usr/i486-mingw32 --static
23 make -f win32/Makefile.gcc \
26 RC=i486-mingw32-windres \
27 STRIP=i486-mingw32-strip \
29 CFLAGS="-DNO_FSEEKO -Wall -O3"
31 mkdir -p $pkgdir/usr/i486-mingw32/{lib,include}
32 install -m 644 libz.a $pkgdir/usr/i486-mingw32/lib/
33 install -m 644 zconf.h zlib.h $pkgdir/usr/i486-mingw32/include/