# SliTaz package receipt.

PACKAGE="gpicview"
VERSION="0.2.1"
CATEGORY="graphics"
SHORT_DESC="Light pictures viewer."
MAINTAINER="pankso@slitaz.org"
DEPENDS="glibc-base expat glib libgio zlib fontconfig freetype \
gtk+ atk cairo pango pixman jpeg libpng libxcb xcb-util \
xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
BUILD_DEPENDS="gtk+-dev xorg-dev intltool"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://lxde.sourceforge.net/gpicview/"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--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/share
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
}