mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-10 13:25:25 +01:00
Remove unversioned autoconf symlink from all but the latest autoconf. This makes it clearer which autoconf is used.
42 lines
1.1 KiB
Bash
Executable file
42 lines
1.1 KiB
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_prepare() {
|
|
default
|
|
|
|
rm -f libltdl/config/ltmain.sh
|
|
|
|
rm -f doc/*.info
|
|
|
|
AUTOM4TE=autom4te-2.61 AUTOCONF=autoconf-2.61 AUTOHEADER=autoheader-2.61 AUTORECONF=autoreconf-2.61 ./bootstrap
|
|
}
|
|
|
|
src_configure() {
|
|
CC=tcc ./configure \
|
|
--prefix="${PREFIX}" \
|
|
--libdir="${PREFIX}/lib/musl" \
|
|
--disable-shared \
|
|
--host=i386-unknown-linux \
|
|
--target=i386-unknown-linux \
|
|
--build=i386-unknown-linux \
|
|
ac_path_EGREP="egrep" \
|
|
ac_path_FGREP="fgrep" \
|
|
ac_path_GREP="grep" \
|
|
ac_path_SED="sed"
|
|
}
|
|
|
|
src_compile() {
|
|
make AUTOM4TE=autom4te-2.61 MAKEINFO=true
|
|
}
|
|
|
|
src_install() {
|
|
make install MAKEINFO=true DESTDIR="${DESTDIR}"
|
|
|
|
sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
|
|
-e "s/{FGREP=.*/{FREGP='fgrep'}/" \
|
|
-e "s/{GREP=.*/{GREP='grep'}/" \
|
|
-e "s/{SED=.*/{SED='sed'}/" \
|
|
"${DESTDIR}/usr/bin/libtool"
|
|
}
|