logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pass1.sh (1228B)


  1. # SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. src_prepare() {
  6. default
  7. rm -f libltdl/config/ltmain.sh libtool
  8. rm -f doc/*.info
  9. 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
  10. }
  11. src_configure() {
  12. LD=tcc CC=tcc AR="true" RANLIB=true ./configure \
  13. --prefix="${PREFIX}" \
  14. --libdir="${LIBDIR}" \
  15. --disable-shared \
  16. --disable-ltdl-install \
  17. --host=i386-unknown-linux \
  18. --target=i386-unknown-linux \
  19. --build=i386-unknown-linux \
  20. ac_path_EGREP="egrep" \
  21. ac_path_FGREP="fgrep" \
  22. ac_path_GREP="grep" \
  23. ac_path_SED="sed"
  24. }
  25. src_compile() {
  26. make "${MAKEJOBS}" AUTOM4TE=autom4te-2.61 MAKEINFO=true
  27. }
  28. src_install() {
  29. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  30. sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
  31. -e "s/{FGREP=.*/{FREGP='fgrep'}/" \
  32. -e "s/{GREP=.*/{GREP='grep'}/" \
  33. -e "s/{SED=.*/{SED='sed'}/" \
  34. "${DESTDIR}/usr/bin/libtool"
  35. }