2017-06-02 22:08:13 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://tmux.github.io/
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Terminal multiplexer"
|
2022-03-21 11:59:20 +01:00
|
|
|
TERMUX_PKG_LICENSE="ISC"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2016-04-20 12:25:44 +02:00
|
|
|
# Link against libandroid-support for wcwidth(), see https://github.com/termux/termux-packages/issues/224
|
2019-03-04 16:01:58 +01:00
|
|
|
TERMUX_PKG_DEPENDS="ncurses, libevent, libandroid-support, libandroid-glob"
|
2021-06-28 21:09:58 +02:00
|
|
|
TERMUX_PKG_VERSION=3.2a
|
2022-03-21 11:59:20 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2021-11-06 06:13:11 +01:00
|
|
|
TERMUX_PKG_SRCURL="https://github.com/tmux/tmux/archive/${TERMUX_PKG_VERSION}.tar.gz"
|
2021-06-28 21:09:58 +02:00
|
|
|
TERMUX_PKG_SHA256=497bc4ee16f10b53b161bf0253b6f9e20cd0f86c5d0104f149212cb0778ae13a
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-07-29 20:53:32 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-static"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2021-11-06 06:13:11 +01:00
|
|
|
TERMUX_PKG_CONFFILES="etc/tmux.conf etc/profile.d/tmux.sh"
|
2019-02-12 23:33:47 +01:00
|
|
|
|
2017-04-22 02:26:00 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
LDFLAGS+=" -landroid-glob"
|
2020-04-29 00:39:27 +02:00
|
|
|
./autogen.sh
|
2017-04-22 02:26:00 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2021-11-06 06:13:11 +01:00
|
|
|
cp "$TERMUX_PKG_BUILDER_DIR"/tmux.conf "$TERMUX_PREFIX"/etc/tmux.conf
|
2019-04-25 14:28:23 +02:00
|
|
|
|
2021-11-06 06:13:11 +01:00
|
|
|
mkdir -p "$TERMUX_PREFIX"/etc/profile.d
|
|
|
|
echo "export TMUX_TMPDIR=$TERMUX_PREFIX/var/run" > "$TERMUX_PREFIX"/etc/profile.d/tmux.sh
|
|
|
|
|
|
|
|
mkdir -p "$TERMUX_PREFIX"/share/bash-completion/completions
|
2019-04-25 14:28:23 +02:00
|
|
|
termux_download \
|
|
|
|
https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/homebrew_1.0.0/completions/tmux \
|
2021-11-06 06:13:11 +01:00
|
|
|
"$TERMUX_PREFIX"/share/bash-completion/completions/tmux \
|
2019-04-25 14:28:23 +02:00
|
|
|
05e79fc1ecb27637dc9d6a52c315b8f207cf010cdcee9928805525076c9020ae
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
2019-09-17 20:08:20 +02:00
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
|
|
|
echo "mkdir -p $TERMUX_PREFIX/var/run" >> postinst
|
|
|
|
}
|