wok annotate anacron/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents 11b5e93cb5f2
children 7dd01dedad38
rev   line source
pascal@14572 1 # SliTaz package receipt.
pascal@14572 2
pascal@14572 3 PACKAGE="anacron"
pascal@14572 4 VERSION="2.3"
pascal@14572 5 CATEGORY="utilities"
pascal@14572 6 SHORT_DESC="Periodic command scheduler."
pascal@14572 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@14789 9 WEB_SITE="http://anacron.sourceforge.net/"
pascal@14572 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14572 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@14572 12
pascal@14572 13 DEPENDS=""
pascal@14572 14 BUILD_DEPENDS=""
pascal@14572 15
pascal@24340 16 # What is the latest version available today?
pascal@24340 17 current_version()
pascal@24340 18 {
pascal@24340 19 wget -O - https://sourceforge.net/projects/anacron/files/anacron/ 2>/dev/null | \
pascal@24340 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*/anacron/||;s|/.*||;q'
pascal@24340 22 }
pascal@24340 23
pascal@14572 24 # Rules to configure and make the package.
pascal@14572 25 compile_rules()
pascal@14572 26 {
pascal@14572 27 sed -i "s|^PREFIX =.*|PREFIX = $DESTDIR|" Makefile
pascal@14572 28 sed -i 's/const int isleap/int isleap/' gregor.c
pascal@14572 29 make 2>&1 | grep -v Makefile:57 && make install
al@19265 30
al@19265 31 mkdir -p $install/usr/share
al@19265 32 mv $install/usr/man $install/usr/share
pascal@14572 33 }
pascal@14572 34
al@19265 35 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19265 36 genpkg_rules()
pascal@14572 37 {
pascal@14572 38 cp -a $install/* $fs
pascal@14572 39 }