logo

live-bootstrap

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

pass1.sh (915B)


  1. # SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. # SPDX-FileCopyrightText: 2022,2025 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. src_prepare() {
  6. # technically lib/gnulib-version.c is also generated, but it's entirely
  7. # unproblematic
  8. . ../../import-gnulib.sh
  9. default
  10. AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.61 AUTOCONF=autoconf-2.61 autoreconf-2.61 -f
  11. # Pre-built files
  12. rm doc/find.info
  13. rm po/*.gmo
  14. }
  15. src_configure() {
  16. # Musl is not recognized, pretend to be uClibc
  17. # Must use --host for config.charset reproducibility
  18. CC=tcc ./configure --prefix="${PREFIX}" \
  19. --host=i386-unknown-linux-gnu \
  20. CPPFLAGS="-D__UCLIBC__"
  21. }
  22. src_compile() {
  23. make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
  24. }
  25. src_install() {
  26. make MAKEINFO=true DESTDIR="${DESTDIR}" install
  27. }