# SliTaz package receipt. PACKAGE="tmux" VERSION="3.3a" CATEGORY="utilities" SHORT_DESC="Terminal multiplexer." MAINTAINER="paul@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/tmux/tmux/wiki" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL" DEPENDS="libevent ncursesw" BUILD_DEPENDS="libevent-dev ncurses-extra ncursesw-dev" HOST_ARCH="i486 arm" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" ./configure $CONFIGURE_ARGS && make PREFIX=/usr && make install PREFIX=/usr && install -d m755 "$DESTDIR/usr/share/tmux/" && install -m 644 example_tmux.conf "$DESTDIR/usr/share/tmux/" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/terminfo/s cp -a $install/usr/bin $fs/usr # copy sample configuration cp -a $install/usr/share/tmux $fs/usr/share # Get screen terminfo data tazpkg get-install ncursesw-extra --root=$src/ncursesw-extra > /dev/null 2>&1 cp -a $src/ncursesw-extra/usr/share/terminfo/s/screen \ $fs/usr/share/terminfo/s rm -r $src/ncursesw-extra }