# SliTaz package receipt.

PACKED_SIZE="20.0K"
UNPACKED_SIZE="52.0K"
PACKAGE="libfm-extra"
VERSION="1.3.2"
CATEGORY="system-tools"
SHORT_DESC="File management support (extra library)."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.lxde.org/"

TARBALL="libfm-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL"

GENERIC_MENUS="no"

DEPENDS="glib glibc-base libgio"
BUILD_DEPENDS="gtk-doc"

current_version()
{
	wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ 2>/dev/null | \
	sed "/libfm-/!d;/tar/!d;s|.*libfm-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
	./configure			\
		--sysconfdir=/etc	\
		--with-extra-only	\
		--with-gtk=no		\
		--disable-static	\
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cook_copy_files	*.so*
}
