1 # Contributor: Alvaro Morais <alvarommorais at gmail dot you know what>
2 # Contributor: Dmitry Stropaloff (helions8@gmail.com)
8 pkgdesc="The Xfce Foundation Classes is a set of integrated C++ classes for developing Xfce applications on UNIX-like operating systems such as Linux."
9 url="http://xfc.xfce.org"
11 arch=('i686' 'x86_64')
13 depends=('gcc>=3.3.2' 'glib2>=2.6.0' 'atk>=1.9.0' 'gtk2>=1.9.0' 'pango>=1.8.0' 'pkgconfig>=0.14' 'libsigc++2.0>=2.0.6')
15 optdepends=('libglade: for libXFCglade' 'doxygen: to build documentation')
17 source=(http://xfc.xfce.org/download/${pkgver}/src/xfc-${pkgver}.tar.bz2)
19 md5sums=('41307022143f65a41e17d5c4d8135b0b')
24 cd ${srcdir}/${pkgname}-${pkgver}
25 sed -i '21 i\#include <string>' libXFCcore/xfc/glib/spawn.hh
26 sed -i '21 i\#include <string.h>' libXFCcore/xfc/glib/spawn.hh
27 sed -i '25 i\#include <algorithm>' libXFCcore/xfc/trackable.hh
28 sed -i '24 i\#include <string.h>' libXFCcore/xfc/utfstring.hh
29 if gcc -dumpmachine | grep x86_64
31 sed -i "50 s/reinterpret_cast<unsigned int>/reinterpret_cast<unsigned long>/" examples/howto/selection/selection.cc
35 ./configure --prefix=/usr --with-docs --disable-ansi --disable-pedantic-errors || return 1
37 ./configure --prefix=/usr --without-docs --disable-ansi --disable-pedantic-errors || return 1
40 make DESTDIR=${pkgdir} install || return 1
43 # vim: ts=2 sw=2 et ft=sh