SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "anacron"

# SliTaz package receipt.

PACKAGE="anacron"
VERSION="2.3"
CATEGORY="utilities"
SHORT_DESC="Periodic command scheduler."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://anacron.sourceforge.net/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS=""
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/anacron/files/anacron/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/anacron/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i "s|^PREFIX =.*|PREFIX = $DESTDIR|" Makefile
    sed -i 's/const int isleap/int isleap/' gregor.c
    make 2>&1 | grep -v Makefile:57 && make install

    mkdir -p $install/usr/share
    mv $install/usr/man $install/usr/share
}

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