new package: tinyfugue

Requested in https://github.com/termux/termux-packages/issues/960.
This commit is contained in:
Leonid Pliushch 2020-01-02 17:17:20 +02:00
parent 17acc4a871
commit 1140adebed
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=http://tinyfugue.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Flexible, screen-oriented MUD client, for use with any type of MUD"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=5.0b8
_COMMIT=854c76f33a4eda6cd64e0b7dc3e07e5de8bbfada
TERMUX_PKG_SRCURL=https://github.com/Longlius/tinyfugue/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=59579de448b7e892a2b4dbfa7a7db7859382a90ec2bd77ce50c515358253461d
TERMUX_PKG_DEPENDS="ncurses, openssl, pcre, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-termcap=ncurses
--disable-mailcheck
"
termux_step_pre_configure() {
# CFLAGS are passed utilities built for host, but GCC
# can't understand "-Oz".
CFLAGS="${CFLAGS/-Oz/-Os}"
}

View File

@ -0,0 +1,12 @@
diff -uNr tinyfugue/unix/unix.mak tinyfugue.mod/unix/unix.mak
--- tinyfugue/unix/unix.mak 2014-02-11 02:48:45.000000000 +0200
+++ tinyfugue.mod/unix/unix.mak 2020-01-02 17:11:01.818254627 +0200
@@ -140,7 +140,7 @@
rm -f worldqueue.tf; ln -s world-q.tf worldqueue.tf;
makehelp: makehelp.c
- $(CC) $(CFLAGS) -o makehelp makehelp.c
+ $(CC_FOR_BUILD) $(CFLAGS) -o makehelp makehelp.c
__always__: