#!/bin/sh
#
# Copyright 2005 Zach Borgerding <zborgerd@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="libgnomedb"
VERSION="1.9.99"
REVISION="1"

PKG_SOURCEURL='http://ftp.gnome.org/pub/GNOME/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

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

cflags
prepare
analyzesource
configure --disable-static --enable-gtk-doc=no
make
makeinstall install-strip

#This is a bad hack until we figure out the culprit.
spewdo "mkdir -p $PKG_STAGEROOT$PKG_DATADIR/omf/$NAME"
spewdo "cp $PKG_BUILDROOT/doc/libgnomedb-C.omf.in $PKG_STAGEROOT$PKG_DATADIR/omf/$NAME/libgnomedb-C.omf"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
