updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / mingw32-libconfig / PKGBUILD
blob62168d089d5df64ac3d365c05ba3e3d28d50e767
1 # maintainer: Kevin Harrison <keharriso@gmail.com>
3 pkgname=mingw32-libconfig
4 pkgver=1.4.8
5 pkgrel=1
6 arch=('any')
7 pkgdesc="C/C++ Configuration File Library (mingw32)"
8 depends=('mingw32-runtime')
9 makedepends=('mingw32-gcc')
10 license=('LGPL')
11 url="http://www.hyperrealm.com/libconfig/"
12 options=(!strip)
13 source=("http://www.hyperrealm.com/libconfig/libconfig-$pkgver.tar.gz")
14 md5sums=('36788da452e9fcfc8efb7661ef5d31ef')
16 build() {
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 \
24     #LD=i486-mingw32-ld \
25     #AR=i486-mingw32-ar \
26     #RANLIB=i486-mingw32-ranlib \
27     #prefix=/usr/i486-mingw32 \
28     #DESTDIR=$pkgdir \
29     #install
31   make
32   make install DESTDIR=$pkgdir
34   install -D -m644 COPYING.LIB "$pkgdir/usr/share/licenses/${pkgname}/COPYING.LIB"