wok-6.x view tmux/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | e0b89d2b47d1 |
children | 51ef9f5adf6d |
line source
1 # SliTaz package receipt.
3 PACKAGE="tmux"
4 VERSION="3.0a"
5 CATEGORY="utilities"
6 SHORT_DESC="Terminal multiplexer."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/tmux/tmux/wiki"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 DEPENDS="libevent ncursesw"
15 BUILD_DEPENDS="libevent-dev ncursesw-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/archive.*tar/!d;/flex/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
30 ./configure $CONFIGURE_ARGS &&
31 make PREFIX=/usr &&
32 make PREFIX=/usr install &&
33 install -d m755 "$DESTDIR/usr/share/tmux/" &&
34 install -m 644 example_tmux.conf $DESTDIR/usr/share/tmux/
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/terminfo/s
42 cp -a $install/usr/bin $fs/usr
44 # copy sample configuration
45 cp -a $install/usr/share/tmux $fs/usr/share
47 # Get screen terminfo data
48 tazpkg get-install ncursesw-extra --root=$src/ncursesw-extra > /dev/null 2>&1
49 cp -a $src/ncursesw-extra/usr/share/terminfo/s/screen \
50 $fs/usr/share/terminfo/s
51 rm -r $src/ncursesw-extra
52 }