wok view anacron/receipt @ rev 25501

Up aspell-pl (6.0_20230101-0), monitorix (3.15.0), simh (3.12.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 11 14:20:29 2023 +0000 (22 months ago)
parents 5f6c5106b1f5
children 6b33f9da53d4
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="https://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 }