27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://tmux.github.io/
|
|
TERMUX_PKG_DESCRIPTION="Terminal multiplexer"
|
|
TERMUX_PKG_LICENSE="BSD"
|
|
# Link against libandroid-support for wcwidth(), see https://github.com/termux/termux-packages/issues/224
|
|
TERMUX_PKG_DEPENDS="ncurses, libevent, libandroid-support, libandroid-glob"
|
|
TERMUX_PKG_VERSION=2.9
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SHA256=34901232f486fd99f3a39e864575e658b5d49f43289ccc6ee57c365f2e2c2980
|
|
TERMUX_PKG_SRCURL=https://github.com/tmux/tmux/releases/download/${TERMUX_PKG_VERSION}/tmux-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_CONFFILES="etc/tmux.conf"
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -landroid-glob"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
cp $TERMUX_PKG_BUILDER_DIR/tmux.conf $TERMUX_PREFIX/etc/tmux.conf
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/bash-completion/completions
|
|
termux_download \
|
|
https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/homebrew_1.0.0/completions/tmux \
|
|
$TERMUX_PREFIX/share/bash-completion/completions/tmux \
|
|
05e79fc1ecb27637dc9d6a52c315b8f207cf010cdcee9928805525076c9020ae
|
|
}
|