updated on Sun Jan 22 04:03:10 UTC 2012
[aur-mirror.git] / xfc / PKGBUILD
blob17375eae7dcf141ea0ffc91924c04eea54cf8ec9
1 # Contributor: Alvaro Morais <alvarommorais at gmail dot you know what>
2 # Contributor: Dmitry Stropaloff (helions8@gmail.com)
5 pkgname=xfc
6 pkgver=4.3.2
7 pkgrel=5
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"
10 license=('LGPL')
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')
21 build() {
22   unset CFLAFS
23   unset CXXFLAGS
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
30   then
31     sed -i "50 s/reinterpret_cast<unsigned int>/reinterpret_cast<unsigned long>/" examples/howto/selection/selection.cc
32   fi
33   if pacman -Q doxygen
34   then
35     ./configure --prefix=/usr --with-docs --disable-ansi --disable-pedantic-errors || return 1
36   else
37     ./configure --prefix=/usr --without-docs --disable-ansi --disable-pedantic-errors || return 1
38   fi
39   make || return 1
40   make DESTDIR=${pkgdir} install || return 1
43 # vim: ts=2 sw=2 et ft=sh