updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mingw32-pangomm / PKGBUILD
blobf638e92a5a246a6f6e1d99a0f2c01576af64527c
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 _pkgname=pangomm
4 pkgname=mingw32-${_pkgname}
5 pkgver=2.28.4
6 pkgrel=1
7 arch=(any)
8 license=('LGPL')
9 pkgdesc="C++ bindings for pango (mingw32)"
10 depends=('mingw32-pango>=1.23.0' 'mingw32-glibmm>=2.14.1'
11          'mingw32-cairomm>=1.2.2')
12 makedepends=(mingw32-gcc 'pkgconfig')
13 source=(http://ftp.gnome.org/pub/GNOME/sources/${_pkgname}/2.28/${_pkgname}-${pkgver}.tar.xz)
14 options=(!strip)
15 url="http://gtkmm.sourceforge.net/"
16 sha256sums=('778dcb66a793cbfd52a9f92ee5a71b888c3603a913fc1ddc48a30204de6d6c82')
18 build() {
19   cd ${srcdir}/${_pkgname}-$pkgver
21   export CFLAGS="-O2 -pipe -march=i686"
22   export CXXFLAGS="$CFLAGS"
23   export CPPFLAGS="$CPPFLAGS -D_REENTRANT"
24   export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig"
25   unset PKG_CONFIG_PATH
26   unset LDFLAGS
28   ./configure \
29     --prefix=/usr/i486-mingw32 \
30     --host=i486-mingw32 \
31     --build=$CHOST \
32     --disable-documentation \
33     --enable-static
35   make
38 package() {
39   cd "${srcdir}/${_pkgname}-$pkgver"
40   make DESTDIR="${pkgdir}" install
42   cd ${pkgdir}
43   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
44     | xargs -rtl1 i486-mingw32-strip -g