# SliTaz package receipt.

PACKAGE="lxshortcut"
VERSION="0.1.1"
CATEGORY="x-window"
SHORT_DESC="Edit application shortcuts compliant with the freedesktop.org Desktop Entry spec."
MAINTAINER="rcx@zoominternet.net"
DEPENDS="glib glibc-base libgio expat zlib \
gtk+ atk cairo pango pixman libpng fontconfig freetype \
xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
BUILD_DEPENDS="pkg-config gettext intltool gtk+-dev \
xorg-xproto xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev xorg-libXdmcp-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.lxde.org/"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	# Fix infinite loop.
	touch po/stamp-it
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		$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/lxshortcut $fs/usr/share
}