# HG changeset patch # User Hans-G?nter Theisgen # Date 1571749763 -3600 # Node ID 55085cfd39e0c1f29e53f03746e1fc9474598015 # Parent 11eb01863eec4ed639fa518a319fbf3faf3b0688 updated tmux-mem-cpu-load (2.2.1 -> 3.4.0) diff -r 11eb01863eec -r 55085cfd39e0 tmux-mem-cpu-load/receipt --- a/tmux-mem-cpu-load/receipt Tue Oct 22 13:52:50 2019 +0100 +++ b/tmux-mem-cpu-load/receipt Tue Oct 22 14:09:23 2019 +0100 @@ -1,30 +1,33 @@ # SliTaz package receipt. PACKAGE="tmux-mem-cpu-load" -VERSION="2.2.1" +VERSION="3.4.0" CATEGORY="utilities" -SHORT_DESC="CPU, RAM memory, and load monitor for use with tmux." +SHORT_DESC="CPU, RAM, and load monitor for use with tmux." MAINTAINER="paul@slitaz.org" LICENSE="Apache" -TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://github.com/tmux/tmux/wiki" -WGET_URL="git|git://github.com/thewtex/tmux-mem-cpu-load" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/thewtex/$PACKAGE/archive/v$VERSION.tar.gz" DEPENDS="tmux" -BUILD_DEPENDS="cmake python bzip2 git" +BUILD_DEPENDS="cmake python" # Rules to configure and make the package. compile_rules() { - cd $src cmake . -DCMAKE_INSTALL_PREFIX=/usr - make && make install + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr $fs/etc/skel + mkdir -p $fs/usr + mkdir -p $fs/etc/skel + cp -a $install/usr/bin $fs/usr cat >> $fs/etc/skel/.tmux.conf << EOT # tmux-mem-cpu-load @@ -35,11 +38,12 @@ post_install() { - for i in $(ls "$1/home" 2> /dev/null); do + for i in $(ls "$1/home" 2> /dev/null) + do grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && continue echo -n "Checking for .tmux.conf for $i ..." cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/" chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf" status - done + done }