SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "indent"

# SliTaz package receipt.

PACKAGE="indent"
VERSION="2.2.12"
CATEGORY="utilities"
SHORT_DESC="A tool for formatting C code."
MAINTAINER="lufeng369@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/indent/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

BUILD_DEPENDS="texinfo"

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

# Rules to configure and make the package.
compile_rules()
{
    rm -f man/indent.1
    sed -i 's|/doc/|/share&|' doc/Makefile*

    ./configure $CONFIGURE_ARGS &&
    make -j 1 &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $install/usr/bin/indent $fs/usr/bin
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)