updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / mingw32-judy / PKGBUILD
blobed5054364a672fbbbe7c6ad5a33928fed70f7fb4
1 # Maintainer: Ondrej Jirman <megous@megous.com>
3 _pkgname=Judy
4 pkgname=mingw32-judy
5 pkgver=1.0.4
6 pkgrel=1
7 arch=(i686)
8 pkgdesc="Judy (mingw32)"
9 depends=(mingw32-runtime)
10 makedepends=(mingw32-gcc)
11 options=(!strip)
12 license=('LGPL')
13 url="http://judy.sourceforge.net/"
14 source=(http://dl.sf.net/sourceforge/judy/$_pkgname-$pkgver.tar.gz
15         $_pkgname-$pkgver-cross.patch)
16 md5sums=('7b03d4b016115ca15a5a96368a76cd10'
17          '0e5bb5b23749f44e85e8209fbc1b27b1')
19 build()
21   cd $startdir/src/$_pkgname-$pkgver
23   export CFLAGS="$CFLAGS -mms-bitfields"
25   cat $startdir/src/$_pkgname-$pkgver-cross.patch | patch -p1
26   ./configure \
27     --prefix=/usr/i486-mingw32 \
28     --host=i486-mingw32 \
29     --build=$CHOST
31   make HOST_CC=gcc -j1
32   make install DESTDIR=$startdir/pkg
34   cd $startdir/pkg
35   find . -name '*.a' -o -name '*.dll' | xargs -rtl1 i486-mingw32-strip -g
36   rm -rf usr/i486-mingw32/share/man