wok-current view tmux-mem-cpu-load/receipt @ rev 20083

update packages openssl, openssl-dev, libcrypto and libcrypto-dev from: 1.0.2k [26 Jan 2017] to 1.0.2l [25 May 2017]
author Erkan Yilmaz <erkan@slitaz.org>
date Wed Sep 27 19:02:39 2017 +0000 (2017-09-27)
parents 9e01bc6321ea
children 6135577f4d08
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
11 WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
13 DEPENDS="tmux"
14 BUILD_DEPENDS="cmake python bzip2 git"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 cmake . -DCMAKE_INSTALL_PREFIX=/usr
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/etc/skel
28 cp -a $install/usr/bin $fs/usr
29 cat >> $fs/etc/skel/.tmux.conf << EOT
30 # tmux-mem-cpu-load
31 set -g status-interval 2
32 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
33 EOT
34 }
36 post_install()
37 {
38 for i in $(ls "$1/home" 2> /dev/null); do
39 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
40 echo -n "Checking for .tmux.conf for $i ..."
41 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
42 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
43 status
44 done
45 }