SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "zerofree"

# SliTaz package receipt.

PACKAGE="zerofree"
VERSION="1.1.1"
CATEGORY="base-system"
SHORT_DESC="Keeping filesystem images sparse."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://frippery.org/uml/"

TARBALL="$PACKAGE-$VERSION.tgz"
WGET_URL="${WEB_SITE}$TARBALL"

DEPENDS="e2fsprogs"
BUILD_DEPENDS="e2fsprogs-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/zerofree-/!d;s|.*-||;s|.t.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/-lext2fs/& -lcom_err/' Makefile
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $src/zerofree $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)