wok-next diff tmux-mem-cpu-load/receipt @ rev 21575

updated linux (4.14.85 -> 4.17.7)
author Hans-G?nter Theisgen
date Tue Jun 23 07:23:21 2020 +0100 (2020-06-23)
parents ed8073aa8cf0
children
line diff
     1.1 --- a/tmux-mem-cpu-load/receipt	Mon Dec 21 00:07:14 2015 +0100
     1.2 +++ b/tmux-mem-cpu-load/receipt	Tue Jun 23 07:23:21 2020 +0100
     1.3 @@ -3,41 +3,40 @@
     1.4  PACKAGE="tmux-mem-cpu-load"
     1.5  VERSION="2.2.1"
     1.6  CATEGORY="utilities"
     1.7 -SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux."
     1.8 +SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux"
     1.9  MAINTAINER="paul@slitaz.org"
    1.10  LICENSE="Apache"
    1.11 +WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 -WEB_SITE="https://github.com/thewtex/tmux-mem-cpu-load"
    1.15  WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
    1.16  
    1.17 -DEPENDS="tmux"
    1.18  BUILD_DEPENDS="cmake python bzip2 git"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -	cd $src
    1.24 -	cmake . -DCMAKE_INSTALL_PREFIX=/usr
    1.25 -	make && make install
    1.26 +compile_rules() {
    1.27 +	cmake \
    1.28 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.29 +		. &&
    1.30 +	make &&
    1.31 +	make install
    1.32  }
    1.33  
    1.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 -genpkg_rules()
    1.36 -{
    1.37 +genpkg_rules() {
    1.38  	mkdir -p $fs/usr $fs/etc/skel
    1.39  	cp -a $install/usr/bin $fs/usr
    1.40 -	cat >> $fs/etc/skel/.tmux.conf << EOT
    1.41 +	cat >> $fs/etc/skel/.tmux.conf <<EOT
    1.42  # tmux-mem-cpu-load
    1.43  set -g status-interval 2
    1.44  set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
    1.45  EOT
    1.46 +	DEPENDS="tmux"
    1.47  }
    1.48  
    1.49 -post_install()
    1.50 -{
    1.51 -	for i in $(ls "$1/home" 2> /dev/null); do
    1.52 +post_install() {
    1.53 +	for i in $(ls "$1/home" 2>/dev/null); do
    1.54  		grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
    1.55 -		echo -n "Checking for .tmux.conf for $i ..."
    1.56 +
    1.57 +		action "Checking for .tmux.conf for $i..."
    1.58  		cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
    1.59  		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
    1.60  		status