wok-6.x annotate tmux/receipt @ rev 25370

updated tmux (3.0a -> 3.3a)
author Hans-G?nter Theisgen
date Fri Jul 29 14:23:40 2022 +0100 (2022-07-29)
parents 51ef9f5adf6d
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@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24302 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
paul@5858 25 # Rules to configure and make the package.
paul@5858 26 compile_rules()
paul@5858 27 {
Hans-G?nter@22044 28 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@22044 29
Hans-G?nter@25370 30 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@25370 31 make PREFIX=/usr &&
Hans-G?nter@25370 32 make install PREFIX=/usr &&
Hans-G?nter@23706 33 install -d m755 "$DESTDIR/usr/share/tmux/" &&
Hans-G?nter@25370 34 install -m 644 example_tmux.conf "$DESTDIR/usr/share/tmux/"
paul@5858 35 }
paul@5858 36
paul@5858 37 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@5858 38 genpkg_rules()
paul@5858 39 {
Hans-G?nter@23706 40 mkdir -p $fs/usr/share/terminfo/s
paul@5858 41
Hans-G?nter@22044 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22044 43
Hans-G?nter@22044 44 # copy sample configuration
Hans-G?nter@22044 45 cp -a $install/usr/share/tmux $fs/usr/share
gokhlayeh@9104 46
paul@13532 47 # Get screen terminfo data
pascal@9114 48 tazpkg get-install ncursesw-extra --root=$src/ncursesw-extra > /dev/null 2>&1
gokhlayeh@9104 49 cp -a $src/ncursesw-extra/usr/share/terminfo/s/screen \
Hans-G?nter@23706 50 $fs/usr/share/terminfo/s
gokhlayeh@9104 51 rm -r $src/ncursesw-extra
paul@5858 52 }