wok view xfce4-cpugraph-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 69d9f8a3fcd6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xfce4-cpugraph-plugin"
4 VERSION="1.0.0"
5 CATEGORY="x-window"
6 SHORT_DESC="CPU Graph plugin for the Xfce4 panel."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-cpugraph-plugin/start"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://archive.xfce.org/src/panel-plugins/$PACKAGE/${VERSION%.*}/$TARBALL"
14 SUGGESTED="xfce4-cpugraph-plugin-lang"
15 DEPENDS="gdk-pixbuf gtk+ libxfcegui4 xfce4-panel"
16 BUILD_DEPENDS="gdk-pixbuf-dev gtk+-dev libxfcegui4-dev pkg-config
17 util-linux-mount-dev xfce4-panel-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE/$(
23 wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE 2>/dev/null | \
24 sed '/href/!d;s|.*href="||;s|/".*||' | sort -Vr | sed q) 2>/dev/null | \
25 sed '/href="x/!d;s|.*gin-||;s|.tar.*||' | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --enable-nls &&
34 make &&
35 make install DESTDIR=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_folders libexec
42 cook_copy_folders panel-plugins
43 }