wok annotate tmux-mem-cpu-load/receipt @ rev 23169
updated mediainfo (19.04 -> 19.09)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 18 09:07:11 2020 +0100 (2020-03-18) |
parents | 6135577f4d08 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@15723 | 1 # SliTaz package receipt. |
pascal@15723 | 2 |
pascal@15723 | 3 PACKAGE="tmux-mem-cpu-load" |
Hans-G?nter@22045 | 4 VERSION="3.4.0" |
pascal@15723 | 5 CATEGORY="utilities" |
Hans-G?nter@22045 | 6 SHORT_DESC="CPU, RAM, and load monitor for use with tmux." |
pascal@15723 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15723 | 8 LICENSE="Apache" |
pascal@20679 | 9 WEB_SITE="https://github.com/tmux/tmux/wiki" |
Hans-G?nter@22045 | 10 |
Hans-G?nter@22045 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22045 | 12 WGET_URL="https://github.com/thewtex/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@15723 | 13 |
pascal@15723 | 14 DEPENDS="tmux" |
Hans-G?nter@22045 | 15 BUILD_DEPENDS="cmake python" |
pascal@15723 | 16 |
pascal@15723 | 17 # Rules to configure and make the package. |
pascal@15723 | 18 compile_rules() |
pascal@15723 | 19 { |
pascal@15723 | 20 cmake . -DCMAKE_INSTALL_PREFIX=/usr |
Hans-G?nter@22045 | 21 make && |
Hans-G?nter@22045 | 22 make install |
pascal@15723 | 23 } |
pascal@15723 | 24 |
pascal@15723 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15723 | 26 genpkg_rules() |
pascal@15723 | 27 { |
Hans-G?nter@22045 | 28 mkdir -p $fs/usr |
Hans-G?nter@22045 | 29 mkdir -p $fs/etc/skel |
Hans-G?nter@22045 | 30 |
pascal@15723 | 31 cp -a $install/usr/bin $fs/usr |
pascal@17085 | 32 cat >> $fs/etc/skel/.tmux.conf << EOT |
pascal@17085 | 33 # tmux-mem-cpu-load |
pascal@17085 | 34 set -g status-interval 2 |
pascal@17085 | 35 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" |
pascal@17085 | 36 EOT |
pascal@15723 | 37 } |
pascal@15723 | 38 |
pascal@15723 | 39 post_install() |
pascal@15723 | 40 { |
Hans-G?nter@22045 | 41 for i in $(ls "$1/home" 2> /dev/null) |
Hans-G?nter@22045 | 42 do |
pascal@18732 | 43 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue |
pascal@17085 | 44 echo -n "Checking for .tmux.conf for $i ..." |
pascal@18732 | 45 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/" |
pascal@18730 | 46 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf" |
pascal@17085 | 47 status |
Hans-G?nter@22045 | 48 done |
pascal@15723 | 49 } |