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

updated nfs-utils again (1.3.0 -> 2.4.3)
author Hans-G?nter Theisgen
date Fri Apr 17 14:10:17 2020 +0100 (2020-04-17)
parents ed8073aa8cf0
children
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"
al@21020 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"
al@21020 9 WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
al@21020 10
pascal@15723 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15723 12 WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
pascal@15723 13
pascal@15723 14 BUILD_DEPENDS="cmake python bzip2 git"
pascal@15723 15
al@21020 16 compile_rules() {
al@21020 17 cmake \
al@21020 18 -DCMAKE_INSTALL_PREFIX=/usr \
al@21020 19 . &&
al@21020 20 make &&
al@21020 21 make install
pascal@15723 22 }
pascal@15723 23
al@21020 24 genpkg_rules() {
pascal@17085 25 mkdir -p $fs/usr $fs/etc/skel
pascal@15723 26 cp -a $install/usr/bin $fs/usr
al@21020 27 cat >> $fs/etc/skel/.tmux.conf <<EOT
pascal@17085 28 # tmux-mem-cpu-load
pascal@17085 29 set -g status-interval 2
pascal@17085 30 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
pascal@17085 31 EOT
al@21020 32 DEPENDS="tmux"
pascal@15723 33 }
pascal@15723 34
al@21020 35 post_install() {
al@21020 36 for i in $(ls "$1/home" 2>/dev/null); do
pascal@18732 37 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
al@21020 38
al@21020 39 action "Checking for .tmux.conf for $i..."
pascal@18732 40 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
pascal@18730 41 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
pascal@17085 42 status
pascal@17080 43 done
pascal@15723 44 }