2016-11-24 00:34:10 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gawk/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Programming language designed for text processing"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-06-23 19:43:52 +02:00
|
|
|
TERMUX_PKG_VERSION=5.0.1
|
2019-08-11 16:07:21 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2016-09-25 00:42:39 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gawk/gawk-${TERMUX_PKG_VERSION}.tar.xz
|
2019-07-22 00:51:28 +02:00
|
|
|
TERMUX_PKG_SHA256=8e4e86f04ed789648b66f757329743a0d6dfb5294c3b91b756a474f1ce05a794
|
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, libgmp, libmpfr, readline"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="gawk-dev"
|
|
|
|
TERMUX_PKG_REPLACES="gawk-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_ESSENTIAL=true
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/gawk-* bin/igawk share/man/man1/igawk.1"
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
# 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
|
|
|
|
}
|