termux-packages/packages/datamash/build.sh

21 lines
1.0 KiB
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/datamash/
2020-02-25 11:32:11 +01:00
TERMUX_PKG_DESCRIPTION="Program performing numeric, textual and statistical operations"
2019-01-20 22:39:59 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2020-04-26 13:52:54 +02:00
TERMUX_PKG_VERSION=1.7
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/datamash/datamash-${TERMUX_PKG_VERSION}.tar.gz
2020-04-26 13:52:54 +02:00
TERMUX_PKG_SHA256=574a592bb90c5ae702ffaed1b59498d5e3e7466a8abf8530c5f2f3f11fa4adb3
TERMUX_PKG_BUILD_IN_SRC=true
2019-05-28 21:31:32 +02:00
termux_step_pre_configure() {
if $TERMUX_DEBUG; then
2019-05-28 21:31:32 +02:00
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error:
# /home/builder/.termux-build/_cache/19b-aarch64-24-v5/bin/../sysroot/usr/include/bits/fortify/stdio.h:51:53: error: use of undeclared identifier '__USE_FORTIFY_LEVEL'
# return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap);
# ^
# lib/cdefs.h:123:48: note: expanded from macro '__bos'
# #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
# ^
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
fi
}