NAME=libnotify
VERSION=(0.4.0 0.3.5 0.1.8)
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}
PREFIXTYPE=gnome
ROOT_REQUIRED=1

SOURCE=( http://www.galago-project.org/files/releases/source/libnotify/libnotify-$VERSION.tar.bz2
         http://www.galago-project.org/files/releases/source/notification-daemon/notification-daemon-${VERSION[1]}.tar.bz2 
	 http://releases.chipx86.com/libsexy/libsexy/libsexy-${VERSION[2]}.tar.gz)
   
SOURCE_SHA1=( )

build() {

  _explode_all
  
  cd "$TMP/$NAME-$VERSION" 
  $CONFIGURE \
    --disable-static
  make -j $NUMOBJS
  make DESTDIR="$PKG" install

  _doc 0 "$NAME-$VERSION" AUTHORS COPYING ChangeLog NEWS README THANKS


  cd "$TMP/libsexy-${VERSION[2]}"
  $CONFIGURE \
    --disable-static
  make -j$NUMOBJS
  make DESTDIR="$PKG" install
  
  _doc 0 "libsexy-${VERSION[2]}" AUTHORS COPYING ChangeLog NEWS README THANKS
  
  _chfix
  _chgrp_bin
  _tmp_pkg 0

  cd "$TMP/notification-daemon-${VERSION[1]}"
  $CONFIGURE \
    --disable-static \
    --with-dbus-services=/usr/share/dbus-1/services/ \
    --with-dbus-sys=/etc/dbus-1/system.d/
  make -j $NUMOBJS
  make DESTDIR="$PKG" install

  _doc 0 "notification-daemon-${VERSION[1]}" AUTHORS COPYING ChangeLog NEWS README THANKS
  

  SCHEMAS=$PKG$SYSCONFDIR/gconf/schemas
  for i in $SCHEMAS/*.schemas
  do
  GCONF_CONFIG_SOURCE="xml::$PKG$SYSCONFDIR/gconf/gconf.xml.defaults" \
          gconftool-2 --makefile-install-rule $i
  done
  

  
  _chfix
  _chgrp_bin
}  

