SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "notification-daemon"

# SliTaz package receipt.

PACKAGE="notification-daemon"
VERSION="0.5.0"
CATEGORY="x-window"
SHORT_DESC="Notification daemon for libnotify/notify-send"
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://gitlab.gnome.org/Archive/notification-daemon"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="dbus libnotify libcanberra libwnck GConf libogg libvorbis libltdl"
BUILD_DEPENDS="dbus-dev libnotify-dev libcanberra-dev GConf-dev \
libwnck-dev libogg-dev libvorbis-dev intltool libtool"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i '/"gnome-util"/{s/,$/);/;nd}' src/capplet/notification-properties.c
    ./configure \
        --sysconfdir=/etc \
        --libexecdir=/usr/bin \
        $CONFIGURE_ARGS && 
    make && make install &&
    rm -rf $install/usr/share/applications
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share
        #$fs/usr/share/pixmaps $fs/usr/share/applications
    #cp -a $install/etc $fs
    cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
    cp -a $install/usr/lib $fs/usr
    rm $fs/usr/lib/*/*/*.*a
    cp -a $install/usr/share/dbus-1 $fs/usr/share
    #cp -a $install/usr/share/$PACKAGE $fs/usr/share
    #cp $install/usr/share/icons/hicolor/32x32/apps/* \
    #    $fs/usr/share/pixmaps
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)