wok-next annotate tmux-mem-cpu-load/receipt @ rev 15925

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