# SliTaz package receipt.

PACKED_SIZE="52.0K"
UNPACKED_SIZE="164.0K"
PACKAGE="menu-cache"
VERSION="1.1.0"
CATEGORY="x-window"
SHORT_DESC="LXDE implementation of the freedesktop Menu's cache"
MAINTAINER="devel@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/lxde/menu-cache"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"
TAGS="LXDE"
HOST_ARCH="i486 arm"

DEPENDS="glib glibc-base libfm-extra libgio" # slitaz-menus ?
BUILD_DEPENDS="gtk-doc libtool libfm-extra-dev"

current_version()
{
	wget -O - $WEB_SITE/tags 2>/dev/null | \
	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

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

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