wok-6.x annotate tmux-mem-cpu-load/receipt @ rev 17081
Add: tramys-server and tramys-client (yesterday version for history).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 24 22:43:01 2014 +0300 (2014-08-24) |
parents | e10c58dd2635 |
children | ce9cbd90365a |
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@17080 | 34 for i in $(ls $1/home); do |
pascal@17080 | 35 grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue |
pascal@17080 | 36 cat >> /home/$i/.tmux.conf << EOT |
pascal@15723 | 37 # tmux-mem-cpu-load |
pascal@15723 | 38 set -g status-interval 2 |
pascal@15723 | 39 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" |
pascal@15723 | 40 EOT |
pascal@17080 | 41 |
pascal@17080 | 42 chroot $1/ chown $i.users /home/$i/.tmux.conf |
pascal@17080 | 43 done |
pascal@15723 | 44 status |
pascal@15723 | 45 } |