wok annotate alarm-clock/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 5ea0ce1cecc0
children
rev   line source
pascal@11216 1 # SliTaz package receipt.
pascal@11216 2
pascal@11216 3 PACKAGE="alarm-clock"
Hans-G?nter@22475 4 VERSION="1.4.9"
pascal@11216 5 CATEGORY="utilities"
Hans-G?nter@22475 6 TAGS="clock reminder"
Hans-G?nter@22475 7 SHORT_DESC="Simple GTK alarm clock."
pascal@11216 8 MAINTAINER="pankso@slitaz.org"
al@18541 9 LICENSE="GPL3"
Hans-G?nter@22475 10 #WEB_SITE="https://web.archive.org/web/20100209072308/http://www.alarm-clock.pl/"
pascal@24326 11 WEB_SITE="https://github.com/nick-s-b/alarm-clock"
Hans-G?nter@22475 12
Hans-G?nter@22475 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@12063 14 #WGET_URL="http://www.alarm-clock.pl/files/$TARBALL"
Hans-G?nter@22475 15 #WGET_URL="http://mirror.slitaz.org/sources/packages/a/$TARBALL"
Hans-G?nter@22475 16 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@11216 17
Hans-G?nter@22475 18 DEPENDS="gstreamer-1.0 gtk+ libunique libnotify"
Hans-G?nter@22477 19 BUILD_DEPENDS="$DEPENDS autoconf automake file gstreamer-1.0-dev gtk+-dev \
Hans-G?nter@22475 20 intltool libnotify-dev libtool libunique-dev"
pascal@14999 21
pascal@24326 22 # What is the latest version available today?
pascal@24055 23 current_version()
pascal@24055 24 {
pascal@24326 25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 26 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 27 }
pascal@24055 28
pascal@11216 29 # Rules to configure and make the package.
pascal@11216 30 compile_rules()
pascal@11216 31 {
pascal@17623 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&/' \
pascal@17622 33 src/alarm_runner.c
pascal@11216 34 chmod +x install-sh
Hans-G?nter@22475 35
Hans-G?nter@22475 36 ./autogen.sh &&
Hans-G?nter@22475 37 make &&
Hans-G?nter@22475 38 make install
pascal@11216 39 }
pascal@11216 40
pascal@11216 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11216 42 genpkg_rules()
pascal@11216 43 {
pascal@11216 44 mkdir -p $fs/usr/share
Hans-G?nter@22475 45
Hans-G?nter@22475 46 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22475 47 cp -a $install/usr/share/alarm-clock $fs/usr/share
Hans-G?nter@22475 48 cp -a $install/usr/share/icons $fs/usr/share
pascal@11216 49 }