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

NAME="ndesk-dbus-glib"
VERSION="0.4.1"
REVISION="5"

PKG_SOURCEURL='http://www.ndesk.org/archive/ndesk-dbus/$NAME-$VERSION.tar.gz'
PKG_PATCH[0]="ndesk-dbus-glib-pkgconfig-64bit-fix.patch"

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

cflags
cxxflags
prepare

if [ "$DLG_ARCH" == "x86-64" ]; then
	applypatch 0 1
fi

analyzesource
configure
make
makeinstall
tidydocumentation
analyzebinaries

#if [ "$DLG_ARCH" == "x86_64" ]; then
# Here we put some stuff into the doinst.sh 
#mkdir $PKG_STAGEROOT/install
#touch $PKG_STAGEROOT/install/doinst.sh

#cat << EOF >> $PKG_STAGEROOT/install/doinst.sh  

#ln -s /usr/lib64/mono/ndesk-dbus-1.0-glib/ /usr/lib/mono/ndesk-dbus-1.0

#EOF

#fi

finalizepackage
packagize
cleanup
