SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "alarm-clock"

# SliTaz package receipt.

PACKAGE="alarm-clock"
VERSION="1.4.9"
CATEGORY="utilities"
TAGS="clock reminder"
SHORT_DESC="Simple GTK alarm clock."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
#WEB_SITE="https://web.archive.org/web/20100209072308/http://www.alarm-clock.pl/"
WEB_SITE="https://github.com/nick-s-b/alarm-clock"

TARBALL="$PACKAGE-$VERSION.tar.gz"
#WGET_URL="http://www.alarm-clock.pl/files/$TARBALL"
#WGET_URL="http://mirror.slitaz.org/sources/packages/a/$TARBALL"
WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"

DEPENDS="gstreamer-1.0 gtk+ libunique libnotify"
BUILD_DEPENDS="$DEPENDS autoconf automake file gstreamer-1.0-dev gtk+-dev \
    intltool libnotify-dev libtool libunique-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    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&/' \
        src/alarm_runner.c
    chmod +x install-sh

    ./autogen.sh &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/alarm-clock    $fs/usr/share
    cp -a $install/usr/share/icons        $fs/usr/share
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)