termux-packages/packages/vtm/build.sh
Leonid Pliushch 641f9f2b16
vtm: disable builds for 32 bit architectures
Need patch for compilation error:

/home/builder/.termux-build/vtm/src/src/netxs/console/../os/system.hpp:1469:80: error: cannot initialize a parameter of type 'socklen_t *' (aka 'int *') with an rvalue of type 'unsigned int *'
                if (!ok(::getsockopt(handle.h, SOL_SOCKET, SO_PEERCRED, &cred, &size), "getsockopt error"))
                                                                               ^~~~~
/home/builder/.termux-build/_cache/android-r21d-api-24-v5/sysroot/usr/include/sys/socket.h:311:92: note: passing argument to parameter '__value_length' here
__socketcall int getsockopt(int __fd, int __level, int __option, void* __value, socklen_t* __value_length);
2021-10-04 15:49:14 +03:00

17 lines
634 B
Bash

TERMUX_PKG_HOMEPAGE=https://vtm.netxs.online/
TERMUX_PKG_DESCRIPTION="Terminal multiplexer with TUI window manager and multi-party session sharing"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.5.15
TERMUX_PKG_SRCURL=https://github.com/netxs-group/vtm/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=fa18ae2f1eee9615c6e0df5be4b248fb15268c5e7401380f129ccee8cb9254f0
TERMUX_PKG_DEPENDS="libandroid-spawn"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+=/src
CXXFLAGS+=" -pthread"
LDFLAGS+=" -landroid-spawn"
}