wok annotate tmux-mem-cpu-load/receipt @ rev 17947
cacerts: remove CNNIC Root Certificate (nothing else changed).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 16 02:08:38 2015 +0300 (2015-04-16) |
parents | ce9cbd90365a |
children | 9e01bc6321ea |
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@17085 | 27 mkdir -p $fs/usr $fs/etc/skel |
pascal@15723 | 28 cp -a $install/usr/bin $fs/usr |
pascal@17085 | 29 cat >> $fs/etc/skel/.tmux.conf << EOT |
pascal@17085 | 30 # tmux-mem-cpu-load |
pascal@17085 | 31 set -g status-interval 2 |
pascal@17085 | 32 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" |
pascal@17085 | 33 EOT |
pascal@15723 | 34 } |
pascal@15723 | 35 |
pascal@15723 | 36 post_install() |
pascal@15723 | 37 { |
pascal@17085 | 38 for i in $(ls $1/home 2> /dev/null); do |
pascal@17080 | 39 grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue |
pascal@17085 | 40 echo -n "Checking for .tmux.conf for $i ..." |
pascal@17085 | 41 cp -a $1/etc/skel/.tmux.conf /home/$i/ |
pascal@17249 | 42 chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tmux.conf |
pascal@17085 | 43 status |
pascal@17080 | 44 done |
pascal@15723 | 45 } |