wok rev 22045

updated tmux-mem-cpu-load (2.2.1 -> 3.4.0)
author Hans-G?nter Theisgen
date Tue Oct 22 14:09:23 2019 +0100 (2019-10-22)
parents 11eb01863eec
children cbc92cce4d38
files tmux-mem-cpu-load/receipt
line diff
     1.1 --- a/tmux-mem-cpu-load/receipt	Tue Oct 22 13:52:50 2019 +0100
     1.2 +++ b/tmux-mem-cpu-load/receipt	Tue Oct 22 14:09:23 2019 +0100
     1.3 @@ -1,30 +1,33 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tmux-mem-cpu-load"
     1.7 -VERSION="2.2.1"
     1.8 +VERSION="3.4.0"
     1.9  CATEGORY="utilities"
    1.10 -SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux."
    1.11 +SHORT_DESC="CPU, RAM, and load monitor for use with tmux."
    1.12  MAINTAINER="paul@slitaz.org"
    1.13  LICENSE="Apache"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15  WEB_SITE="https://github.com/tmux/tmux/wiki"
    1.16 -WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load"
    1.17 +
    1.18 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 +WGET_URL="https://github.com/thewtex/$PACKAGE/archive/v$VERSION.tar.gz"
    1.20  
    1.21  DEPENDS="tmux"
    1.22 -BUILD_DEPENDS="cmake python bzip2 git"
    1.23 +BUILD_DEPENDS="cmake python"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	cd $src
    1.29  	cmake . -DCMAKE_INSTALL_PREFIX=/usr
    1.30 -	make && make install
    1.31 +	make &&
    1.32 +	make install
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 -	mkdir -p $fs/usr $fs/etc/skel
    1.39 +	mkdir -p $fs/usr
    1.40 +	mkdir -p $fs/etc/skel
    1.41 +
    1.42  	cp -a $install/usr/bin $fs/usr
    1.43  	cat >> $fs/etc/skel/.tmux.conf << EOT
    1.44  # tmux-mem-cpu-load
    1.45 @@ -35,11 +38,12 @@
    1.46  
    1.47  post_install()
    1.48  {
    1.49 -	for i in $(ls "$1/home" 2> /dev/null); do
    1.50 +	for i in $(ls "$1/home" 2> /dev/null)
    1.51 +	  do
    1.52  		grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue
    1.53  		echo -n "Checking for .tmux.conf for $i ..."
    1.54  		cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/"
    1.55  		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
    1.56  		status
    1.57 -	done
    1.58 +	  done
    1.59  }