wok-current annotate tmux-mem-cpu-load/receipt @ rev 25792
Fix openbox menu, label keymap on lxpanel and add miss it translation for tazpkg
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Oct 07 05:55:24 2025 +0000 (2 weeks ago) |
| parents | 5ea0ce1cecc0 |
| children |
| rev | line source |
|---|---|
| pascal@15723 | 1 # SliTaz package receipt. |
| pascal@15723 | 2 |
| pascal@15723 | 3 PACKAGE="tmux-mem-cpu-load" |
| Hans-Günter@25371 | 4 VERSION="3.6.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@24055 | 17 current_version() |
| pascal@24055 | 18 { |
| pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
| pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
| pascal@24055 | 21 } |
| pascal@24055 | 22 |
| pascal@15723 | 23 # Rules to configure and make the package. |
| pascal@15723 | 24 compile_rules() |
| pascal@15723 | 25 { |
| Hans-Günter@25371 | 26 mkdir _build && |
| Hans-Günter@25371 | 27 cd _build && |
| Hans-Günter@25371 | 28 cmake .. \ |
| Hans-Günter@25371 | 29 -D CMAKE_INSTALL_PREFIX=/usr && |
| Hans-Günter@22045 | 30 make && |
| Hans-Günter@22045 | 31 make install |
| pascal@15723 | 32 } |
| pascal@15723 | 33 |
| pascal@15723 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
| pascal@15723 | 35 genpkg_rules() |
| pascal@15723 | 36 { |
| Hans-Günter@22045 | 37 mkdir -p $fs/usr |
| Hans-Günter@22045 | 38 mkdir -p $fs/etc/skel |
| Hans-Günter@22045 | 39 |
| Hans-Günter@25371 | 40 cp -a $install/usr/bin $fs/usr |
| pascal@17085 | 41 cat >> $fs/etc/skel/.tmux.conf << EOT |
| pascal@17085 | 42 # tmux-mem-cpu-load |
| pascal@17085 | 43 set -g status-interval 2 |
| pascal@17085 | 44 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" |
| pascal@17085 | 45 EOT |
| pascal@15723 | 46 } |
| pascal@15723 | 47 |
| pascal@15723 | 48 post_install() |
| pascal@15723 | 49 { |
| Hans-Günter@22045 | 50 for i in $(ls "$1/home" 2> /dev/null) |
| Hans-Günter@22045 | 51 do |
| Hans-Günter@25371 | 52 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && |
| Hans-Günter@25371 | 53 continue |
| pascal@17085 | 54 echo -n "Checking for .tmux.conf for $i ..." |
| Hans-Günter@25371 | 55 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/" |
| pascal@18730 | 56 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf" |
| pascal@17085 | 57 status |
| Hans-Günter@22045 | 58 done |
| pascal@15723 | 59 } |