#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="libnotify"
VERSION="0.4.0"
REVISION="1"

PKG_SOURCEURL='http://www.galago-project.org/files/releases/source/$NAME/$NAME-$VERSION.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

cflags
cxxflags
prepare
analyzesource
configure
make -j3
makecheck
makeinstall install-strip

#notify-python bindings
#http://www.galago-project.org/news/index.php
(
	NOTIFY_PY_STAGEROOT=$PKG_STAGEROOT
	NAME="notify-python"
	VERSION="0.1.0"
	REVISION="1"
	PKG_SOURCEURL='http://www.galago-project.org/files/releases/source/$NAME/$NAME-$VERSION.tar.bz2'
	
	. $DLG_ROOT/config
	. $DLG_ROOT/SCRIPTS/dropline-functions.sh

	cflags
	cxxflags
	prepare
	analyzesource
	
	spewdo "cd $PKG_SRCROOT"
	configure
	make -j3
	makecheck
	PKG_STAGEROOT=$NOTIFY_PY_STAGEROOT
	makeinstall install-strip
)

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup

