updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mingw32-glibmm / PKGBUILD
blob50c3097943c142336a1333e3d4a9e7016fd3b3bf
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 _pkgname=glibmm
4 pkgname=mingw32-${_pkgname}
5 pkgver=2.30.1
6 pkgrel=1
7 arch=(any)
8 pkgdesc="C++ interface for glib (mingw32)"
9 depends=('mingw32-glib2>=2.28' 'mingw32-libsigc++2.0>=2.2.5')
10 makedepends=(mingw32-gcc)
11 license=(LGPL)
12 source=(http://ftp.gnome.org/pub/GNOME/sources/${_pkgname}/2.30/${_pkgname}-$pkgver.tar.xz)
13 options=(!strip)
14 url="http://www.gtkmm.org/"
15 sha256sums=('69582b584666cab1dc4253faffee548054730bc058e28466871e6a954d7ff897')
17 build() {
18   cd "$srcdir/${_pkgname}-$pkgver"
20   export CFLAGS="-march=i686 -O2 -pipe"
21   export CXXFLAGS="$CFLAGS"
22   export CPPFLAGS="$CPPFLAGS -D_REENTRANT"
23   export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig"
24   unset LDFLAGS PKG_CONFIG_PATH
26   ./configure \
27     --prefix=/usr/i486-mingw32 \
28     --host=i486-mingw32 \
29     --build=$CHOST \
30     --disable-documentation
32   make
35 package() {
36   cd "$srcdir/${_pkgname}-$pkgver"
37   make DESTDIR="$pkgdir" install
39   cd ${pkgdir}
40   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
41     | xargs -rtl1 i486-mingw32-strip -g