Receipt for: e2tools

source
# SliTaz package receipt.

PACKAGE="e2tools"
VERSION="0.0.16.4"
CATEGORY="base-system"
SHORT_DESC="Read, write, and manipulate files in an ext2 or ext3 filesystem."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/ndim/$PACKAGE"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"

DEPENDS="e2fsprogs"
BUILD_DEPENDS="autoconf automake e2fsprogs-dev libcomerr-dev"

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

# Rules to configure and make the package.
compile_rules()
{
	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
	autoreconf -vis . &&
	./configure \
		--prefix=/usr \
		$CONFIGURE_ARGS &&
	make -j 1 &&
	make DESTDIR=$DESTDIR install
}

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