updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / mingw32-gtk2 / PKGBUILD
blob655146071403ac7cde5713e83e2dcd9ee6b3549f
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=mingw32-gtk2
4 pkgver=2.24.8
5 pkgrel=1
6 arch=(any)
7 pkgdesc="The GTK+ Toolkit (v2) (mingw32)"
8 url="http://www.gtk.org/"
9 depends=('mingw32-atk>=1.30' 'mingw32-pango>=1.20'
10          'mingw32-glib2>=2.28' 'mingw32-cairo>=1.6'
11          'mingw32-gdk-pixbuf2>=2.22')
12 makedepends=(mingw32-gcc)
13 options=(!strip)
14 license=('LGPL')
15 source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz)
16 sha256sums=('8a3b29f667933cf52eea2db7b066723edbc80443ca9c75b7cd7cbe8c8b90b93c')
18 build() {
19     cd "${srcdir}/gtk+-${pkgver}"
20   
21   export CFLAGS="-O2 -mms-bitfields"
22   export CXXFLAGS="${CFLAGS}"
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     --with-gdktarget=win32 \
31     --disable-modules \
32     --disable-cups \
33     --with-included-loaders=png,bmp,ico,pnm,xpm
35     make
38 package() {
39     cd "${srcdir}/gtk+-${pkgver}"
40     mkdir -p ${pkgdir}/usr/i486-mingw32/lib
41     make DESTDIR="${pkgdir}" install
43     cd ${pkgdir}
44   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
45     | xargs -rtl1 i486-mingw32-strip -g
46   
47   rm -rf usr/i486-mingw32/share/{gtk-doc,man,gtk-2.0}