#!/bin/bash
#
# Copyright 2012 Eugene Wissner <belka.ew@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="gcr"
VERSION="3.6.0"
REVISION="1"

PKG_SOURCEURL='ftp://ftp.gnome.org/mirror/gnome.org/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.xz'
PKG_SANIFYNOTOUCH="aclocal warning"

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
prepare
analyzesource

if [ "$DLG_ARCH" == "x86-64" ]; then
	host="x86_64-slackware-linux"
else
	host="i486-slackware-linux"
fi
configure --disable-debug \
	--build=$host

make
makeinstall install-strip

# Don't ship .la files:
spewdo "rm -f $PKG_STAGEROOT$PKG_LIBDIR$LIBSUFFIX/*.la"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
