wok-current view waterline-plugin-multiload/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents 89a4a3d69f78
children 00a9a7506076
line source
1 # SliTaz package receipt.
3 PACKAGE="waterline-plugin-multiload"
4 VERSION="f8b592a"
5 CATEGORY="x-window"
6 SHORT_DESC="multiload-nandhp is a port of the GNOME multiload applet to SDE waterline panel"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/sde-gui/waterline-plugin-multiload"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="http://git.make-linux.org/sde/$PACKAGE.git/snapshot/$TARBALL"
12 TAGS="desktop panel"
14 DEPENDS="waterline libgtop"
15 BUILD_DEPENDS="automake libtool gtk+-dev jansson-dev libsde-utils \
16 libsde-utils-x11 libsde-utils-jansson libsde-utils-gtk \
17 xorg-libXcomposite-dev menu-cache-dev alsa-lib-dev xz \
18 libgtop-dev lxpanel-dev waterline-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
24 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed 's|lxpanel/plugin.h>|&\n#include <lxpanel/private.h>|' \
31 -i lxpanel/lxpanel-multiload-plugin.c
32 rm -rf $src/.git
33 ./autogen.sh || return 1
34 sed 's#ls $srcdir/po/\*.po #& 2>/dev/null#' -i configure
35 ./configure \
36 --prefix=/usr \
37 --libexec=/usr/lib \
38 --sysconfdir=/etc \
39 --localstatedir=/var \
40 --disable-static \
41 --disable-maintainer-mode \
42 --enable-silent-rules \
43 --with-waterline \
44 --with-lxpanel \
45 --without-xfce4 \
46 $CONFIGURE_ARGS &&
47 make &&
48 make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib/waterline/plugins
55 cp -a $install/usr/lib/waterline/plugins/*.so $fs/usr/lib/waterline/plugins
56 }