2021-02-21 21:09:47 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
2022-03-07 07:58:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
2021-02-21 21:09:47 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_compile() {
|
2021-04-19 00:44:21 +01:00
|
|
|
rm doc/standards.info doc/autoconf.info
|
2021-02-21 21:09:47 +00:00
|
|
|
cp autoconf.in autoconf
|
2021-03-17 00:24:37 +00:00
|
|
|
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
|
2021-02-21 21:09:47 +00:00
|
|
|
chmod +x autoconf
|
|
|
|
|
|
|
|
m4 autoconf.m4 --freeze-state=autoconf.m4f
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2022-01-14 10:53:30 +00:00
|
|
|
install -D autoconf ${DESTDIR}${PREFIX}/bin/autoconf-2.52
|
2021-04-02 12:24:40 +01:00
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/share/autoconf-2.52
|
|
|
|
cp -r *.m4* ${DESTDIR}${PREFIX}/share/autoconf-2.52/
|
2021-02-21 21:09:47 +00:00
|
|
|
}
|