wok annotate tmux-mem-cpu-load/receipt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (6 months ago) |
parents | a73375793791 |
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@25601 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@15723 | 24 # Rules to configure and make the package. |
pascal@15723 | 25 compile_rules() |
pascal@15723 | 26 { |
Hans-G?nter@25371 | 27 mkdir _build && |
Hans-G?nter@25371 | 28 cd _build && |
Hans-G?nter@25371 | 29 cmake .. \ |
Hans-G?nter@25371 | 30 -D CMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@22045 | 31 make && |
Hans-G?nter@22045 | 32 make install |
pascal@15723 | 33 } |
pascal@15723 | 34 |
pascal@15723 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15723 | 36 genpkg_rules() |
pascal@15723 | 37 { |
Hans-G?nter@22045 | 38 mkdir -p $fs/usr |
Hans-G?nter@22045 | 39 mkdir -p $fs/etc/skel |
Hans-G?nter@22045 | 40 |
Hans-G?nter@25371 | 41 cp -a $install/usr/bin $fs/usr |
pascal@17085 | 42 cat >> $fs/etc/skel/.tmux.conf << EOT |
pascal@17085 | 43 # tmux-mem-cpu-load |
pascal@17085 | 44 set -g status-interval 2 |
pascal@17085 | 45 set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]" |
pascal@17085 | 46 EOT |
pascal@15723 | 47 } |
pascal@15723 | 48 |
pascal@15723 | 49 post_install() |
pascal@15723 | 50 { |
Hans-G?nter@22045 | 51 for i in $(ls "$1/home" 2> /dev/null) |
Hans-G?nter@22045 | 52 do |
Hans-G?nter@25371 | 53 grep -qs "tmux-mem-cpu-load" "$1/home/$i/.tmux.conf" && |
Hans-G?nter@25371 | 54 continue |
pascal@17085 | 55 echo -n "Checking for .tmux.conf for $i ..." |
Hans-G?nter@25371 | 56 cp -a "$1/etc/skel/.tmux.conf" "$1/home/$i/" |
pascal@18730 | 57 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf" |
pascal@17085 | 58 status |
Hans-G?nter@22045 | 59 done |
pascal@15723 | 60 } |