wok view tmux-mem-cpu-load/receipt @ rev 22669

Up firefox-official (72.0.1, CVE-2019-17026)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 17 11:02:35 2020 +0100 (2020-01-17)
parents 6135577f4d08
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="tmux-mem-cpu-load"
4 VERSION="3.4.0"
5 CATEGORY="utilities"
6 SHORT_DESC="CPU, RAM, and load monitor for use with tmux."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/tmux/tmux/wiki"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/thewtex/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="tmux"
15 BUILD_DEPENDS="cmake python"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cmake . -DCMAKE_INSTALL_PREFIX=/usr
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 mkdir -p $fs/etc/skel
31 cp -a $install/usr/bin $fs/usr
32 cat >> $fs/etc/skel/.tmux.conf << EOT
33 # tmux-mem-cpu-load
34 set -g status-interval 2
35 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
36 EOT
37 }
39 post_install()
40 {
41 for i in $(ls "$1/home" 2> /dev/null)
42 do
43 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
44 echo -n "Checking for .tmux.conf for $i ..."
45 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
46 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
47 status
48 done
49 }