wok view tmux-mem-cpu-load/receipt @ rev 15879

tinc: fix /var path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 05 13:18:58 2014 +0000 (2014-02-05)
parents
children 633aff33b052
line source
1 # SliTaz package receipt.
3 PACKAGE="tmux-mem-cpu-load"
4 VERSION="2.2.1"
5 CATEGORY="utilities"
6 SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
11 WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
13 DEPENDS="tmux"
14 BUILD_DEPENDS="cmake python bzip2 git"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 cmake . -DCMAKE_INSTALL_PREFIX=/usr
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 }
31 post_install()
32 {
33 echo -n "Checking for .tmux.conf..."
34 if [ ! -f /home/tux/.tmux.conf ] || $(! grep -q "tmux-mem-cpu-load" /home/tux/.tmux.conf); then
35 cat >> /home/tux/.tmux.conf << EOT
36 # tmux-mem-cpu-load
37 set -g status-interval 2
38 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
39 EOT
40 fi
41 chown tux:users /home/tux/.tmux.conf
42 status
43 }