logo

live-bootstrap

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

pass1.sh (1173B)


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