updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mingw32-libsoup / PKGBUILD
bloba29ac0bd2e82d2e0cfd4426d570a56788b8f956c
1 # $Id: PKGBUILD 140934 2011-10-20 05:43:55Z ibiru $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=mingw32-libsoup
5 pkgver=2.28.2
6 pkgrel=3
7 arch=('i686' 'x86_64')
8 license=('LGPL')
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')
17 build() {
18   export CFLAGS="-O2 -pipe -march=i686 -mms-bitfields"
19   export CPPFLAGS="-D_REENTRANT"
20   export PKG_CONFIG_LIBDIR=/usr/i486-mingw32/lib/pkgconfig
21   unset PKG_CONFIG_PATH
22   unset LDFLAGS
23   cd "${srcdir}/libsoup-${pkgver}"
24   patch -p1 -i ${srcdir}/libsoup-mingw32.patch
25   autoreconf
26   ./configure --prefix=/usr/i486-mingw32 \
27           --sysconfdir=/etc \
28           --host=i486-mingw32 \
29           --build=$CHOST \
30           --enable-shared \
31           --localstatedir=/var --enable-static \
32           --without-gnome --disable-glibtest --disable-ssl
33   make 
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
43   cd ${pkgdir}
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}}