From de533fe10c9989aa0a34b9b7eb2d0ec6a3e93e0f Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@users.noreply.github.com> Date: Sat, 11 Dec 2021 05:34:36 +0900 Subject: [PATCH] new package: stone (#8171) --- packages/stone/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/stone/build.sh diff --git a/packages/stone/build.sh b/packages/stone/build.sh new file mode 100644 index 000000000..22549da09 --- /dev/null +++ b/packages/stone/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=https://www.gcd.org/sengoku/stone/ +TERMUX_PKG_DESCRIPTION="A TCP/IP repeater in the application layer" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=2.4 +TERMUX_PKG_SRCURL=https://www.gcd.org/sengoku/stone/stone-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=d5dc1af6ec5da503f2a40b3df3fe19a8fbf9d3ce696b8f46f4d53d2ac8d8eb6f +TERMUX_PKG_DEPENDS="openssl" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_MAKE_ARGS="-e stone" + +termux_step_configure() { + CFLAGS+=" $CPPFLAGS" + export FLAGS="-DUSE_SSL -DUNIX_DAEMON -DNO_RINDEX -DUSE_EPOLL -DPTHREAD -DPRCTL -UANDROID" + export LIBS="$LDFLAGS -lssl -lcrypto" +} + +termux_step_make_install() { + install -Dm700 -t $TERMUX_PREFIX/bin stone +}