wok-6.x view alarm-clock/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="alarm-clock"
4 VERSION="1.4.9"
5 CATEGORY="utilities"
6 TAGS="clock reminder"
7 SHORT_DESC="Simple GTK alarm clock."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 #WEB_SITE="https://web.archive.org/web/20100209072308/http://www.alarm-clock.pl/"
11 WEB_SITE="https://github.com/nick-s-b/alarm-clock"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 #WGET_URL="http://www.alarm-clock.pl/files/$TARBALL"
15 #WGET_URL="http://mirror.slitaz.org/sources/packages/a/$TARBALL"
16 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
18 DEPENDS="gstreamer-1.0 gtk+ libunique libnotify"
19 BUILD_DEPENDS="$DEPENDS autoconf automake file gstreamer-1.0-dev gtk+-dev \
20 intltool libnotify-dev libtool libunique-dev"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/.*= notify_notification_new_with_status_icon/#define notify_notification_new_with_status_icon(a,b,c,d) notify_notification_new(a,b,gtk_status_icon_get_icon_name(c))\n&/' \
33 src/alarm_runner.c
34 chmod +x install-sh
36 ./autogen.sh &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/alarm-clock $fs/usr/share
48 cp -a $install/usr/share/icons $fs/usr/share
49 }