wok-next view tmux-mem-cpu-load/receipt @ rev 21583

updated ddclient (3.8.3 -> 3.9.1)
author Hans-G?nter Theisgen
date Tue Jun 23 16:30:52 2020 +0100 (2020-06-23)
parents ed8073aa8cf0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tmux-mem-cpu-load"
4 VERSION="2.2.1"
5 CATEGORY="utilities"
6 SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
14 BUILD_DEPENDS="cmake python bzip2 git"
16 compile_rules() {
17 cmake \
18 -DCMAKE_INSTALL_PREFIX=/usr \
19 . &&
20 make &&
21 make install
22 }
24 genpkg_rules() {
25 mkdir -p $fs/usr $fs/etc/skel
26 cp -a $install/usr/bin $fs/usr
27 cat >> $fs/etc/skel/.tmux.conf <<EOT
28 # tmux-mem-cpu-load
29 set -g status-interval 2
30 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
31 EOT
32 DEPENDS="tmux"
33 }
35 post_install() {
36 for i in $(ls "$1/home" 2>/dev/null); do
37 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
39 action "Checking for .tmux.conf for $i..."
40 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
41 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
42 status
43 done
44 }