logo

live-bootstrap

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

pass1.sh (1048B)


  1. # SPDX-FileCopyrightText: 2022 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. . ../../import-gnulib.sh
  8. # We don't have autopoint from gettext yet
  9. AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
  10. # Remove bison pregenerated file
  11. rm gnu/parse-datetime.c
  12. }
  13. src_configure() {
  14. # gl_cv_func_getcwd_path_max is set to improve reproducibility.
  15. # In some environments, the configure script would set it to
  16. # "no, but it is partly working", and in others it would set it
  17. # to "yes", producing different build outputs.
  18. FORCE_UNSAFE_CONFIGURE=1 ./configure \
  19. --prefix="${PREFIX}" \
  20. --disable-nls \
  21. gl_cv_func_getcwd_path_max="no, but it is partly working"
  22. }
  23. src_compile() {
  24. make "${MAKEJOBS}" PREFIX="${PREFIX}" MAKEINFO="true"
  25. }
  26. src_install() {
  27. make install PREFIX="${PREFIX}" MAKEINFO="true" DESTDIR="${DESTDIR}"
  28. }