wok annotate tmux/receipt @ rev 25704

BootProg: contiguous file support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 16:57:31 2024 +0000 (3 weeks ago)
parents 03bcf02499ab
children
rev   line source
paul@5858 1 # SliTaz package receipt.
paul@5858 2
paul@5858 3 PACKAGE="tmux"
Hans-G?nter@25370 4 VERSION="3.3a"
paul@5858 5 CATEGORY="utilities"
paul@5858 6 SHORT_DESC="Terminal multiplexer."
paul@5858 7 MAINTAINER="paul@slitaz.org"
pascal@15601 8 LICENSE="MIT"
Hans-G?nter@22044 9 WEB_SITE="https://github.com/tmux/tmux/wiki"
Hans-G?nter@22044 10
paul@5858 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22044 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL"
Hans-G?nter@22044 13
Hans-G?nter@22044 14 DEPENDS="libevent ncursesw"
Hans-G?nter@25370 15 BUILD_DEPENDS="libevent-dev ncurses-extra ncursesw-dev"
Hans-G?nter@22044 16
pankso@16116 17 HOST_ARCH="i486 arm"
paul@5858 18
pascal@25601 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25601 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
paul@5858 26 # Rules to configure and make the package.
paul@5858 27 compile_rules()
paul@5858 28 {
Hans-G?nter@22044 29 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@22044 30
Hans-G?nter@25370 31 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@25370 32 make PREFIX=/usr &&
Hans-G?nter@25370 33 make install PREFIX=/usr &&
Hans-G?nter@23706 34 install -d m755 "$DESTDIR/usr/share/tmux/" &&
Hans-G?nter@25370 35 install -m 644 example_tmux.conf "$DESTDIR/usr/share/tmux/"
paul@5858 36 }
paul@5858 37
paul@5858 38 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@5858 39 genpkg_rules()
paul@5858 40 {
Hans-G?nter@23706 41 mkdir -p $fs/usr/share/terminfo/s
paul@5858 42
Hans-G?nter@22044 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22044 44
Hans-G?nter@22044 45 # copy sample configuration
Hans-G?nter@22044 46 cp -a $install/usr/share/tmux $fs/usr/share
gokhlayeh@9104 47
paul@13532 48 # Get screen terminfo data
pascal@9114 49 tazpkg get-install ncursesw-extra --root=$src/ncursesw-extra > /dev/null 2>&1
gokhlayeh@9104 50 cp -a $src/ncursesw-extra/usr/share/terminfo/s/screen \
Hans-G?nter@23706 51 $fs/usr/share/terminfo/s
gokhlayeh@9104 52 rm -r $src/ncursesw-extra
paul@5858 53 }