wok view tmux-mem-cpu-load/receipt @ rev 24246
updated perl-net-pcap again (0.18 -> 0.20)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 09:27:07 2022 +0100 (2022-01-02) |
parents | 55085cfd39e0 |
children | a73375793791 |
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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cmake . -DCMAKE_INSTALL_PREFIX=/usr
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 mkdir -p $fs/etc/skel
37 cp -a $install/usr/bin $fs/usr
38 cat >> $fs/etc/skel/.tmux.conf << EOT
39 # tmux-mem-cpu-load
40 set -g status-interval 2
41 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
42 EOT
43 }
45 post_install()
46 {
47 for i in $(ls "$1/home" 2> /dev/null)
48 do
49 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
50 echo -n "Checking for .tmux.conf for $i ..."
51 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
52 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
53 status
54 done
55 }