php: Update from 7.1 RC3 to RC4
[termux-packages] / packages / mosh / build.sh
CommitLineData
efd0d783 1TERMUX_PKG_HOMEPAGE=https://mosh.org
966a875d 2TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
fc8d62d5
FF
3TERMUX_PKG_VERSION=1.2.6
4TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/archive/mosh-${TERMUX_PKG_VERSION}.tar.gz
5TERMUX_PKG_FOLDERNAME=mosh-mosh-$TERMUX_PKG_VERSION
3f300a10 6TERMUX_PKG_DEPENDS="libandroid-support, protobuf, ncurses, openssl, openssh, libutil"
966a875d 7
2145cf90 8termux_step_pre_configure () {
7ce56385
FF
9 export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
10
2145cf90
FF
11 cd $TERMUX_PKG_SRCDIR
12 ./autogen.sh
13}
bd033205
FF
14
15termux_step_post_make_install () {
99ea70c7 16 cd $TERMUX_PREFIX/bin
17 mv mosh mosh.pl
7ce56385
FF
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
bd033205 24}