wok-current view anacron/receipt @ rev 24642

updated hfsprescue (3.4 -> 3.5)
author Hans-G?nter Theisgen
date Wed Mar 09 17:03:53 2022 +0100 (2022-03-09)
parents 11b5e93cb5f2
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="anacron"
4 VERSION="2.3"
5 CATEGORY="utilities"
6 SHORT_DESC="Periodic command scheduler."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://anacron.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/anacron/files/anacron/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/anacron/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i "s|^PREFIX =.*|PREFIX = $DESTDIR|" Makefile
28 sed -i 's/const int isleap/int isleap/' gregor.c
29 make 2>&1 | grep -v Makefile:57 && make install
31 mkdir -p $install/usr/share
32 mv $install/usr/man $install/usr/share
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 }