wok view fake-hwclock/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (3 months ago)
parents 11d3cfab0628
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fake-hwclock"
4 VERSION="0.13"
5 CATEGORY="network"
6 TAGS="clock"
7 SHORT_DESC="Save/restore system clock on machines without working RTC hardware."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="git|https://git.einval.com/git/fake-hwclock.git"
14 BRANCH="75363d85aac2423fbd15c61f3729e63fea4019df"
16 BUILD_DEPENDS="git"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git 2>/dev/null | \
22 sed '/tags\/v[0-9]/!d;s|.*/tags/v||;s|".*||;q'
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/sbin $fs/etc/init.d
29 cp $src/fake-hwclock $fs/usr/sbin
30 cp $stuff/fake-hwclock $fs/etc/init.d
31 cp $stuff/fake-hwclock.data $fs/etc
32 }
34 post_install()
35 {
36 # Ensure we have start point
37 echo $(date '+%Y-%m-%d %H:%M:%S') > /etc/fake-hwclock.data
38 }