SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "less"

# SliTaz package receipt.

PACKAGE="less"
VERSION="633"
CATEGORY="base-system"
SHORT_DESC="A terminal based program for viewing text files."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL3"
WEB_SITE="https://www.greenwoodsoftware.com/less"

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

DEPENDS="ncurses pcre"
BUILD_DEPENDS="ncurses-dev pcre-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed '/been released for general use/!d;s|.*less-||;s| has.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        --mandir=/usr/share/man    \
        --with-regex=pcre    \
        $CONFIGURE_ARGS &&
    make &&
    make    install            \
        prefix=$DESTDIR/usr    \
        mandir=$DESTDIR/usr/share/man
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
}

post_remove()
{
    ln -s /bin/busybox    "$1/usr/bin/less"
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)