mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Early versions of automake have `autoconf` hardcoded into them as a program that should exist. We *were* "fixing" this by creating a symlink in autoconf-2.54. However this symlink is _not_ in the repo package, which broke some things. Also meant that from autoconf 2.54 through autoconf 2.71, automake was using autoconf 2.53. Let's make it consistent by having autoconf symlinks in every autoconf package.
22 lines
793 B
Bash
Executable file
22 lines
793 B
Bash
Executable file
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
src_compile() {
|
|
rm doc/standards.info doc/autoconf.info
|
|
cp autoconf.in autoconf
|
|
sed -i -e "s# @SHELL@#/bin/sh#" -e 's/@M4@/m4/' -e 's/@AWK@/awk/' \
|
|
-e 's/@PACKAGE_NAME@/Autoconf/' -e 's/@VERSION@/2.52/' \
|
|
-e "s#@datadir@#${PREFIX}/share/autoconf-2.52#" autoconf
|
|
chmod +x autoconf
|
|
|
|
m4 autoconf.m4 --freeze-state=autoconf.m4f
|
|
}
|
|
|
|
src_install() {
|
|
install -D autoconf "${DESTDIR}${PREFIX}/bin/autoconf-2.52"
|
|
mkdir -p "${DESTDIR}${PREFIX}/share/autoconf-2.52"
|
|
cp -r -- *.m4* "${DESTDIR}${PREFIX}/share/autoconf-2.52/"
|
|
ln -s autoconf-2.52 "${DESTDIR}${PREFIX}/bin/autoconf"
|
|
}
|