wok view xfce4-genmon-plugin/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (13 days ago)
parents 4e5d77dcfd78
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xfce4-genmon-plugin"
4 VERSION="3.4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Genmon plugin for the Xfce4 panel."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin/start"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://archive.xfce.org/src/panel-plugins/$PACKAGE/${VERSION%.*}/$TARBALL"
14 SUGGESTED="xfce4-genmon-plugin-lang"
15 DEPENDS="gdk-pixbuf gtk+ libxfcegui4 libxfce4ui startup-notification
16 xcb-util xfce4-panel"
17 BUILD_DEPENDS="file gdk-pixbuf-dev gtk+-dev libxfcegui4-dev libxfce4ui-dev
18 pkg-config startup-notification-dev xcb-util-dev xfce4-panel-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE/$(
24 wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE 2>/dev/null | \
25 sed '/href/!d;s|.*href="||;s|/".*||' | sort -Vr | sed q) 2>/dev/null | \
26 sed '/href="x/!d;s|.*gin-||;s|.tar.*||' | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --enable-nls &&
35 make &&
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_folders plugins
43 rm -f $fs/usr/lib/xfce4/panel/plugins/libgenmon.la
44 }