wok-undigest rev 1036

Add tmux-mem-cpu-load
author Paul Issott <paul@slitaz.org>
date Sun Oct 13 17:18:10 2013 +0100 (2013-10-13)
parents d68043c67659
children a33a6b3d31b4
files tmux-mem-cpu-load/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tmux-mem-cpu-load/receipt	Sun Oct 13 17:18:10 2013 +0100
     1.3 @@ -0,0 +1,42 @@
     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 +DEPENDS="tmux"
    1.12 +BUILD_DEPENDS="cmake python bzip2 git"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
    1.15 +WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	cmake . -DCMAKE_INSTALL_PREFIX=/usr
    1.22 +	make && make install
    1.23 +}
    1.24 +
    1.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 +genpkg_rules()
    1.27 +{
    1.28 +	mkdir -p $fs/usr
    1.29 +	cp -a $install/usr/bin $fs/usr
    1.30 +}
    1.31 +
    1.32 +post_install()
    1.33 +{
    1.34 +	echo -n "Checking for .tmux.conf..."
    1.35 +	if [ ! -f /home/tux/.tmux.conf ] || $(! grep -q "tmux-mem-cpu-load" /home/tux/.tmux.conf); then
    1.36 +	cat >> /home/tux/.tmux.conf << EOT
    1.37 +# tmux-mem-cpu-load
    1.38 +set -g status-interval 2
    1.39 +set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
    1.40 +EOT
    1.41 +	fi
    1.42 +	chown tux:users /home/tux/.tmux.conf
    1.43 +	status
    1.44 +}
    1.45 +