updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mingw32-gnet / PKGBUILD
blob6a7ab76380ec89a73813339179b2f8b3048f1941
1 # Contributor: Andre Klitzing <aklitzing () online () de>
2 pkgname=mingw32-gnet
3 _pkgname=gnet
4 pkgver=2.0.8
5 pkgrel=1
6 arch=('i686')
7 pkgdesc="gnet (mingw32)"
8 depends=('mingw32-glib2')
9 makedepends=('mingw32-gcc' 'mingw32-pkgconfig')
10 license=(LGPL)
11 options=(!strip)
12 url="http://www.gnetlibrary.org"
13 source=(http://ftp.gnome.org/pub/GNOME/sources/${_pkgname}/2.0/${_pkgname}-$pkgver.tar.bz2)
14 md5sums=('93327d2fca333d7e54ba2cf54e071165')
16 build()
18   cd "$srcdir/$_pkgname-$pkgver"
20 cat > win32.cache << EOF
21 ac_cv_gnet_have_abstract_sockets=no
22 EOF
24   export CFLAGS="$CFLAGS -mms-bitfields -mno-cygwin"
26   ./configure \
27     --prefix=/usr/i486-mingw32 \
28     --host=i486-mingw32 \
29     --build=$CHOST \
30     --cache-file=win32.cache \
31     || return 1
33   make || return 1
34   make install DESTDIR="$pkgdir" || return 1