wok-next annotate tmux-mem-cpu-load/receipt @ rev 20672
font-manager: update bdeps / fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 11 16:51:58 2018 +0300 (2018-05-11) |
parents | 9e01bc6321ea |
children | d5aab818505e |
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@18730 | 38 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@18732 | 39 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue |
pascal@17085 | 40 echo -n "Checking for .tmux.conf for $i ..." |
pascal@18732 | 41 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/" |
pascal@18730 | 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 } |