logo

live-bootstrap

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

pass1.sh (1370B)


  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 libltdl/m4/ltversion.m4
  8. rm -f doc/*.info
  9. rm -f tests/testsuite
  10. find tests -name configure | while read d; do
  11. rm -r "$(dirname "$d")"
  12. done
  13. 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
  14. }
  15. src_configure() {
  16. LD=tcc CC=tcc AR="true" RANLIB=true ./configure \
  17. --prefix="${PREFIX}" \
  18. --libdir="${LIBDIR}" \
  19. --disable-shared \
  20. --disable-ltdl-install \
  21. --host=i386-unknown-linux \
  22. --target=i386-unknown-linux \
  23. --build=i386-unknown-linux \
  24. ac_path_EGREP="egrep" \
  25. ac_path_FGREP="fgrep" \
  26. ac_path_GREP="grep" \
  27. ac_path_SED="sed"
  28. }
  29. src_compile() {
  30. make "${MAKEJOBS}" AUTOM4TE=autom4te-2.61 MAKEINFO=true
  31. }
  32. src_install() {
  33. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  34. sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
  35. -e "s/{FGREP=.*/{FREGP='fgrep'}/" \
  36. -e "s/{GREP=.*/{GREP='grep'}/" \
  37. -e "s/{SED=.*/{SED='sed'}/" \
  38. "${DESTDIR}/usr/bin/libtool"
  39. }