wok view alarm-clock/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents e53f2d90f7d0
children 095836df71b7
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/shaggytwodope/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 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 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&/' \
32 src/alarm_runner.c
33 chmod +x install-sh
35 ./autogen.sh &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/alarm-clock $fs/usr/share
47 cp -a $install/usr/share/icons $fs/usr/share
48 }