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

NAME="colord"
VERSION="0.1.23"
REVISION="1"

PKG_SOURCEURL='http://www.freedesktop.org/software/$NAME/releases/$NAME-$VERSION.tar.xz'

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

PKG_LOCALSTATEDIR="/var"

cflags
prepare
analyzesource
configure --disable-examples
make
makeinstall install-strip

# Moving udev rules into their place.
spewdo "mv $PKG_STAGEROOT/lib/udev $PKG_STAGEROOT$PKG_SYSCONFDIR"
spewdo "rmdir $PKG_STAGEROOT/lib"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
