# SliTaz package receipt.

PACKAGE="libwnck"
VERSION="2.30.6"
CATEGORY="x-window"
SHORT_DESC="libwnck is Window Navigator Construction Kit."
MAINTAINER="pankso@slitaz.org"
DEPENDS="expat gtk+ startup-notification xorg-libICE xorg-libSM xorg-libX11 \
xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXdamage"
BUILD_DEPENDS="perl-xml-parser gettext intltool xorg-dev gtk+-dev pkg-config gobject-introspection-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://ftp.acc.umu.se/pub/gnome/sources/libwnck/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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