logo

live-bootstrap

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

pass1.sh (1501B)


  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 doc/*.1
  10. rm -f bootstrap
  11. rm -f tests/testsuite
  12. ../../import-gnulib.sh
  13. LIBTOOLIZE=true AUTOPOINT=true ../../bootstrap-helper.sh
  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
  15. 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
  16. }
  17. src_configure() {
  18. ./configure \
  19. --prefix="${PREFIX}" \
  20. --libdir="${LIBDIR}" \
  21. --disable-shared \
  22. --host=i386-unknown-linux \
  23. --target=i386-unknown-linux \
  24. --build=i386-unknown-linux \
  25. ac_path_EGREP="egrep" \
  26. ac_path_FGREP="fgrep" \
  27. ac_path_GREP="grep" \
  28. ac_path_SED="sed"
  29. }
  30. src_compile() {
  31. make "${MAKEJOBS}" AUTOM4TE=autom4te-2.69 MAKEINFO=true
  32. }
  33. src_install() {
  34. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  35. sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
  36. -e "s/{FGREP=.*/{FREGP='fgrep'}/" \
  37. -e "s/{GREP=.*/{GREP='grep'}/" \
  38. -e "s/{SED=.*/{SED='sed'}/" \
  39. "${DESTDIR}/usr/bin/libtool"
  40. }