# SliTaz package receipt.

PACKAGE="dbus-glib"
VERSION="0.98"
CATEGORY="x-window"
SHORT_DESC="D-Bus glib binding."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://freedesktop.org/wiki/Software/DBusBindings"
WGET_URL="http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL"
CROSS="bug: can not run test program"

DEPENDS="dbus libgio expat"
BUILD_DEPENDS="dbus-dev glib-dev libgio-dev expat-dev \
pkg-config gettext"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--build=$HOST_SYSTEM \
		--host=$HOST_SYSTEM &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}