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