wok-next diff tmux-mem-cpu-load/receipt @ rev 17001
linux-cloop: apply patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 11 16:36:05 2014 +0200 (2014-08-11) |
parents | |
children | 633aff33b052 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tmux-mem-cpu-load/receipt Mon Aug 11 16:36:05 2014 +0200 1.3 @@ -0,0 +1,44 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="tmux-mem-cpu-load" 1.7 +VERSION="2.2.1" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +LICENSE="Apache" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load" 1.14 +WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load" 1.15 + 1.16 +DEPENDS="tmux" 1.17 +BUILD_DEPENDS="cmake python bzip2 git" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + cmake . -DCMAKE_INSTALL_PREFIX=/usr 1.24 + make && make install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr 1.31 + cp -a $install/usr/bin $fs/usr 1.32 +} 1.33 + 1.34 +post_install() 1.35 +{ 1.36 + echo -n "Checking for .tmux.conf..." 1.37 + if [ ! -f /home/tux/.tmux.conf ] || $(! grep -q "tmux-mem-cpu-load" /home/tux/.tmux.conf); then 1.38 + cat >> /home/tux/.tmux.conf << EOT 1.39 +# tmux-mem-cpu-load 1.40 +set -g status-interval 2 1.41 +set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" 1.42 +EOT 1.43 + fi 1.44 + chown tux:users /home/tux/.tmux.conf 1.45 + status 1.46 +} 1.47 +