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

33 lines
765 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
2021-02-27 17:35:02 +00:00
rm Makefile.in */Makefile.in
rm configure
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
2021-03-17 00:24:37 +00: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
rm ${PREFIX}/bin/autoconf-2.52
rm -rf ${PREFIX}/share/autoconf-2.52
make install MAKEINFO=true DESTDIR="${DESTDIR}"
2021-02-27 17:35:02 +00:00
}