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

NAME="glib2"
VERSION="2.22.2"
REVISION="1"
PKG_PATCH[0]='libglib2.sh'
PKG_PATCH[1]='libglib2.csh'

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

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

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

createdir $PKG_STAGEROOT/etc/profile.d
findpatch filename libglib2.sh
spewdo "cp $filename $PKG_STAGEROOT/etc/profile.d/libglib2.sh.new"
findpatch filename libglib2.csh
spewdo "cp $filename $PKG_STAGEROOT/etc/profile.d/libglib2.csh.new"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
