live-bootstrap/sysa/autoconf-2.52/stage2.sh

37 lines
858 B
Bash
Raw Normal View History

2021-02-27 17:35:02 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
rm doc/standards.info doc/autoconf.info
2022-05-09 19:55:26 +01:00
rm -- Makefile.in */Makefile.in
2021-02-27 17:35:02 +00:00
rm configure
# Do not use pregenerated manpages
sed -i '/SUBDIRS/s/ man//' Makefile.am
2021-02-27 17:35:02 +00:00
autoconf-2.52
automake-1.4
# Install autoconf data files into versioned directory
2021-03-17 22:17:11 +00:00
for file in */Makefile.in Makefile.in; do
2022-05-09 19:55:26 +01:00
sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
2021-02-27 17:35:02 +00:00
done
}
src_configure() {
./configure --prefix="${PREFIX}" --program-suffix=-2.52
2021-02-27 17:35:02 +00:00
}
src_compile() {
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
2021-02-27 17:35:02 +00:00
src_install() {
# Remove manually installed autoconf
2022-05-09 19:55:26 +01:00
rm "${PREFIX}/bin/autoconf-2.52"
rm -rf "${PREFIX}/share/autoconf-2.52"
2021-02-27 17:35:02 +00:00
make install MAKEINFO=true DESTDIR="${DESTDIR}"
2021-02-27 17:35:02 +00:00
}