termux-packages/packages/gawk/build.sh

19 lines
897 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gawk/
TERMUX_PKG_DESCRIPTION="Programming language designed for text processing"
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DEPENDS="libandroid-support, libmpfr, libgmp, readline"
2016-08-27 18:14:28 +02:00
TERMUX_PKG_VERSION=4.1.4
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gawk/gawk-${TERMUX_PKG_VERSION}.tar.xz
2017-03-04 21:54:30 +01:00
TERMUX_PKG_SHA256=53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266
2015-06-13 01:03:31 +02:00
TERMUX_PKG_RM_AFTER_INSTALL="bin/gawk-* bin/igawk share/man/man1/igawk.1"
termux_step_pre_configure () {
# 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
cd $TERMUX_PKG_SRCDIR
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
}