live-bootstrap/sysa/libtool-2.2.4/libtool-2.2.4.sh

44 lines
1.2 KiB
Bash
Raw Normal View History

2021-03-25 19:14:34 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
2021-03-25 19:14:34 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
rm -f libltdl/config/ltmain.sh libtool
rm -f doc/*.info
AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.61 AUTOCONF=autoconf-2.61 AUTOHEADER=autoheader-2.61 AUTORECONF=autoreconf-2.61 ./bootstrap
2021-03-25 19:14:34 +00:00
}
src_configure() {
LD=tcc CC=tcc AR="true" RANLIB=true ./configure \
2021-03-25 19:14:34 +00:00
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
2021-03-25 19:14:34 +00:00
--disable-shared \
--disable-ltdl-install \
2021-03-25 19:14:34 +00:00
--host=i386-unknown-linux \
--target=i386-unknown-linux \
2022-02-23 09:59:57 +00:00
--build=i386-unknown-linux \
ac_path_EGREP="egrep" \
ac_path_FGREP="fgrep" \
ac_path_GREP="grep" \
ac_path_SED="sed"
2021-03-25 19:14:34 +00:00
}
src_compile() {
make AUTOM4TE=autom4te-2.61 MAKEINFO=true
2021-03-25 19:14:34 +00:00
}
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"
2021-03-25 19:14:34 +00:00
}