# SliTaz package receipt.

PACKAGE="py3k-llfuse"
VERSION="1.4.2"
CATEGORY="development"
SHORT_DESC="A set of Python bindings for the low level FUSE API."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL2+"
WEB_SITE="https://github.com/python-llfuse/python-llfuse/"

SOURCE="llfuse"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"

DEPENDS="fuse2 py3k"
BUILD_DEPENDS="fuse2-dev py3k-dev py3k-setuptools_scm"

# What is the latest version available today?
current_version()
{
	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
	# not compiling with fuse[3]!
	python3 setup.py build &&
	python3 setup.py install --prefix=/usr --root=$DESTDIR
}

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