Cleanup of more packages
[termux-packages] / packages / mosh / build.sh
1 TERMUX_PKG_HOMEPAGE=https://mosh.org
2 TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
3 TERMUX_PKG_VERSION=1.2.6
4 TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/archive/mosh-${TERMUX_PKG_VERSION}.tar.gz
5 TERMUX_PKG_FOLDERNAME=mosh-mosh-$TERMUX_PKG_VERSION
6 TERMUX_PKG_DEPENDS="libandroid-support, protobuf, ncurses, openssl, openssh, libutil"
7
8 termux_step_pre_configure () {
9 export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
10
11 cd $TERMUX_PKG_SRCDIR
12 ./autogen.sh
13 }
14
15 termux_step_post_make_install () {
16 cd $TERMUX_PREFIX/bin
17 mv mosh mosh.pl
18 $CXX $CXXFLAGS $LDFLAGS \
19 -isystem $TERMUX_PREFIX/include \
20 -lutil \
21 -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" \
22 -std=c++11 -Wall -Wextra -Werror \
23 $TERMUX_PKG_BUILDER_DIR/mosh.cc -o mosh
24 }