1 # $Id: PKGBUILD 140934 2011-10-20 05:43:55Z ibiru $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=mingw32-libsoup
9 makedepends=('glib2' 'libxml2' 'sqlite3' 'intltool' 'glib-networking')
10 url="http://www.gnome.org"
11 source=(http://ftp.gnome.org/pub/gnome/sources/libsoup/${pkgver%.*}/libsoup-${pkgver}.tar.bz2
12 "libsoup-mingw32.patch")
13 options=('!libtool' '!emptydirs')
14 md5sums=('31d7ad416005eed4b78f07ac01b6b9f0'
15 'adde57336841479263d3fa492359b6ce')
18 export CFLAGS="-O2 -pipe -march=i686 -mms-bitfields"
19 export CPPFLAGS="-D_REENTRANT"
20 export PKG_CONFIG_LIBDIR=/usr/i486-mingw32/lib/pkgconfig
23 cd "${srcdir}/libsoup-${pkgver}"
24 patch -p1 -i ${srcdir}/libsoup-mingw32.patch
26 ./configure --prefix=/usr/i486-mingw32 \
31 --localstatedir=/var --enable-static \
32 --without-gnome --disable-glibtest --disable-ssl
36 package_mingw32-libsoup() {
37 pkgdesc="GNOME HTTP Library - base library"
38 depends=('glib2' 'libxml2' 'glib-networking')
40 cd "${srcdir}/libsoup-${pkgver}"
41 make DESTDIR="${pkgdir}" install
44 rm -f "${pkgdir}"/usr/lib/libsoup-gnome-2.4.*
45 rm -f "${pkgdir}/usr/lib/pkgconfig/libsoup-gnome-2.4.pc"
46 rm -rf "${pkgdir}/usr/include/libsoup-gnome-2.4"
47 rm -f "${pkgdir}/usr/lib/girepository-1.0/SoupGNOME-2.4.typelib"
49 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
50 | xargs -rtl1 i486-mingw32-strip -g
51 find . -name "*.dll.a" -exec i486-mingw32-ranlib {} \;
52 rm -rf usr/i486-mingw32/{share/{gtk-doc,man}}