# SliTaz package receipt.

PACKED_SIZE="80.0K"
UNPACKED_SIZE="312.0K"
PACKAGE="fuse2"
VERSION="2.9.9"
CATEGORY="system-tools"
TAGS="filesystem"
SHORT_DESC="Fuse Filsystem in user space."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://fuse.sourceforge.net/"

SOURCE="fuse"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://github.com/libfuse/libfuse/releases/download/$SOURCE-$VERSION/$TARBALL"

PROVIDE="fuse"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
	wget -O - https://raw.githubusercontent.com/libfuse/libfuse/master/ChangeLog.rst 2>/dev/null | \
	sed '/^FUSE 2/!d;s|FUSE ||;s| .*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	./configure		\
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib

	cp -a $install/dev		$fs
	cp -a $install/sbin		$fs
	cp -a $install/usr/bin		$fs/usr
	cp -a $install/usr/lib/*.so*	$fs/usr/lib
}
