# SliTaz package receipt.

PACKED_SIZE="52.0K"
UNPACKED_SIZE="264.0K"
PACKAGE="exfat-utils"
VERSION="1.3.0"
CATEGORY="base-system"
SHORT_DESC="exFAT file system tools."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://github.com/relan/exfat"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/relan/exfat/archive/v$VERSION/$TARBALL"
PROVIDE="exfat-fuse"

DEPENDS="fuse2"
BUILD_DEPENDS="autoconf automake fuse2-dev"

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

# Rules to configure and make the package.
compile_rules()
{
	autoreconf --install
	./configure
	make DESTDIR=$DESTDIR install
}

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