termux-packages/packages/cboard/build.sh

23 lines
953 B
Bash
Raw Normal View History

2020-04-22 20:37:14 +02:00
TERMUX_PKG_HOMEPAGE=https://benkibbey.wordpress.com/cboard/
TERMUX_PKG_DESCRIPTION="PGN browser, editor and chess engine frontend"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2020-04-22 20:37:14 +02:00
TERMUX_PKG_VERSION=0.7.5
TERMUX_PKG_REVISION=3
2020-04-22 20:37:14 +02:00
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=dd748039f3531653e1573577cd814741524e1b16e16e3a841ef512e5150da6a0
TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs"
TERMUX_PKG_GROUPS="games"
2020-04-22 20:37:14 +02:00
termux_step_pre_configure() {
2021-11-27 09:40:14 +01:00
CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX -fcommon"
2020-04-22 20:37:14 +02:00
LDFLAGS+=" -landroid-glob"
if $TERMUX_DEBUG_BUILD; then
2020-04-22 20:37:14 +02:00
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error:
# /home/builder/.termux-build/cboard/src/libchess/pgn.c:2235:33: error: 'umask' called with invalid mode
# mode = umask(600);
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
fi
}