new package: autoconf213

Closes https://github.com/termux/termux-packages/issues/5640.
This commit is contained in:
Leonid Pliushch 2020-11-05 20:05:31 +00:00
parent 831c6af3dd
commit 7cc79fcd69
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,18 @@
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/autoconf/autoconf.html
TERMUX_PKG_DESCRIPTION="Creator of shell scripts to configure source code packages (legacy v2.13)"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=2.13
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/autoconf/autoconf-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
TERMUX_PKG_DEPENDS="m4, make, perl"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--program-suffix=-2.13"
termux_step_post_get_source() {
perl -p -i -e "s|/bin/sh|$TERMUX_PREFIX/bin/sh|" *.m4
}
termux_step_post_massage() {
perl -p -i -e "s|/usr/bin/m4|$TERMUX_PREFIX/bin/m4|" $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/bin/*
perl -p -i -e "s|CONFIG_SHELL-/bin/sh|CONFIG_SHELL-$TERMUX_PREFIX/bin/sh|" $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/bin/autoconf-2.13
}

View File

@ -0,0 +1,12 @@
diff -uNr autoconf-2.13/acspecific.m4 autoconf-2.13.mod/acspecific.m4
--- autoconf-2.13/acspecific.m4 1999-01-05 13:27:52.000000000 +0000
+++ autoconf-2.13.mod/acspecific.m4 2020-11-05 19:58:31.094308943 +0000
@@ -2248,7 +2248,7 @@
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
ac_tmpdirs="$TMPDIR"
else
- ac_tmpdirs='/tmp /var/tmp /usr/tmp'
+ ac_tmpdirs='@TERMUX_PREFIX@/tmp'
fi
for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
test -d $ac_dir || continue