logo

live-bootstrap

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

pass1.sh (1467B)


  1. # SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
  2. # SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  3. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  4. #
  5. # SPDX-License-Identifier: GPL-3.0-or-later
  6. src_prepare() {
  7. default
  8. rm -f build-aux/ltmain.sh
  9. rm -f doc/*.info
  10. rm -f bootstrap
  11. ../../import-gnulib.sh
  12. LIBTOOLIZE=true AUTOPOINT=true ../../bootstrap-helper.sh
  13. LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 AUTOCONF=autoconf-2.69 AUTOHEADER=autoheader-2.69 autoreconf-2.69 -fi
  14. LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 AUTOCONF=autoconf-2.69 AUTOHEADER=autoheader-2.69 autoreconf-2.69 -fi libltdl
  15. }
  16. src_configure() {
  17. ./configure \
  18. --prefix="${PREFIX}" \
  19. --libdir="${LIBDIR}" \
  20. --disable-shared \
  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.69 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. }