fcc97842dfa1aea0f365f434483dccf889546c0f
[termux-packages] / packages / screen / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/screen/
2 TERMUX_PKG_DESCRIPTION="Terminal multiplexer with VT100/ANSI terminal emulation"
3 TERMUX_PKG_VERSION=4.5.1
4 TERMUX_PKG_SHA256=97db2114dd963b016cd4ded34831955dcbe3251e5eee45ac2606e67e9f097b2d
5 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/screen/screen-${TERMUX_PKG_VERSION}.tar.gz
6 TERMUX_PKG_DEPENDS="ncurses, libcrypt"
7 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
8 --disable-socket-dir
9 --enable-colors256
10 --with-ssl=openssl
11 "
12
13 termux_step_pre_configure () {
14 # Run autoreconf since we have patched configure.ac
15 autoconf
16 CFLAGS+=" -DGETUTENT"
17 LDFLAGS+=" -llog -lcrypt"
18 }
19
20 termux_step_post_configure() {
21 echo '#define HAVE_SVR4_PTYS 1' >> $TERMUX_PKG_BUILDDIR/config.h
22 echo 'mousetrack on' > "$TERMUX_PREFIX/etc/screenrc"
23 }