termux-packages/packages/tmux/build.sh
Leonid Pliushch f2dcc0299f specify CONFFILES for bash, nano, resolv-conf, tmux
Prevent overwriting user's configuration files if package was upgraded.
2019-02-13 22:51:28 +01:00

21 lines
786 B
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, libutil, libandroid-support, libandroid-glob"
TERMUX_PKG_VERSION=2.8
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=7f6bf335634fafecff878d78de389562ea7f73a7367f268b66d37ea13617a2ba
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
}