c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
28 lines
1.2 KiB
Bash
28 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gawk/
|
|
TERMUX_PKG_DESCRIPTION="Programming language designed for text processing"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_VERSION=5.0.1
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gawk/gawk-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=8e4e86f04ed789648b66f757329743a0d6dfb5294c3b91b756a474f1ce05a794
|
|
TERMUX_PKG_DEPENDS="libandroid-support, libgmp, libmpfr, readline"
|
|
TERMUX_PKG_BREAKS="gawk-dev"
|
|
TERMUX_PKG_REPLACES="gawk-dev"
|
|
TERMUX_PKG_ESSENTIAL=true
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/gawk-* bin/igawk share/man/man1/igawk.1"
|
|
|
|
termux_step_pre_configure() {
|
|
# Certain packages are not safe to build on device because their
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
fi
|
|
|
|
# Remove old symlink to force a fresh timestamp:
|
|
rm -f $TERMUX_PREFIX/bin/awk
|
|
|
|
# http://cross-lfs.org/view/CLFS-2.1.0/ppc64-64/temp-system/gawk.html
|
|
cp -v extension/Makefile.in{,.orig}
|
|
sed -e 's/check-recursive all-recursive: check-for-shared-lib-support/check-recursive all-recursive:/' extension/Makefile.in.orig > extension/Makefile.in
|
|
}
|