1 # maintainer: Kevin Harrison <keharriso@gmail.com>
3 pkgname=mingw32-libconfig
7 pkgdesc="C/C++ Configuration File Library (mingw32)"
8 depends=('mingw32-runtime')
9 makedepends=('mingw32-gcc')
11 url="http://www.hyperrealm.com/libconfig/"
13 source=("http://www.hyperrealm.com/libconfig/libconfig-$pkgver.tar.gz")
14 md5sums=('36788da452e9fcfc8efb7661ef5d31ef')
17 cd "$srcdir/libconfig-$pkgver"
19 unset LDFLAGS # mingw-ld chokes on --hash-style=gnu
21 ./configure --build=i486-mingw32 --prefix=/usr/i486-mingw32
22 #make -f scripts/makefile.mingw \
23 #CC=i486-mingw32-gcc \
26 #RANLIB=i486-mingw32-ranlib \
27 #prefix=/usr/i486-mingw32 \
32 make install DESTDIR=$pkgdir
34 install -D -m644 COPYING.LIB "$pkgdir/usr/share/licenses/${pkgname}/COPYING.LIB"