wok view notification-daemon/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | 8db481e72104 |
children | 5c0ba7968d4c |
line source
1 # SliTaz package receipt.
3 PACKAGE="notification-daemon"
4 VERSION="0.5.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Notification daemon for libnotify/notify-send"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.galago-project.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="dbus libnotify libcanberra libwnck GConf libogg libvorbis libltdl"
14 BUILD_DEPENDS="dbus-dev libnotify-dev libcanberra-dev GConf-dev \
15 libwnck-dev libogg-dev libvorbis-dev intltool libtool"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i '/"gnome-util"/{s/,$/);/;nd}' src/capplet/notification-properties.c
27 ./configure \
28 --sysconfdir=/etc \
29 --libexecdir=/usr/bin \
30 $CONFIGURE_ARGS &&
31 make && make install &&
32 rm -rf $install/usr/share/applications
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin $fs/usr/share
39 #$fs/usr/share/pixmaps $fs/usr/share/applications
40 #cp -a $install/etc $fs
41 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
42 cp -a $install/usr/lib $fs/usr
43 rm $fs/usr/lib/*/*/*.*a
44 cp -a $install/usr/share/dbus-1 $fs/usr/share
45 #cp -a $install/usr/share/$PACKAGE $fs/usr/share
46 #cp $install/usr/share/icons/hicolor/32x32/apps/* \
47 # $fs/usr/share/pixmaps
48 }