# SliTaz package receipt.

PACKAGE="GConf"
VERSION="2.32.3"
CATEGORY="utilities"
SHORT_DESC="A configuration database system."
MAINTAINER="rcx@zoominternet.net"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://projects.gnome.org/gconf/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="glibc-base glib libgio dbus dbus-glib expat libxml2 zlib \
polkit ORBit2 atk cairo gtk+ fontconfig freetype pango pixman libpng \
xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
BUILD_DEPENDS="intltool gettext libcrypto libcomerr3 gobject-introspection-dev \
ORBit2-dev dbus-dev dbus-glib-dev polkit-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/GConf \
		$CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p  $fs/usr/lib $fs/usr/share
	cp -a $_pkg/usr/lib/GConf $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
	rm $fs/usr/lib/GConf/2/*.*a
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/etc $fs
	cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
	cp -a $_pkg/usr/share/polkit-1 $fs/usr/share
}