logo

live-bootstrap

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

pass1.sh (1084B)


  1. # SPDX-FileCopyrightText: 2021-2022 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_prepare() {
  5. rm bin/autoconf.in
  6. rm -- Makefile.in */Makefile.in */*/Makefile.in aclocal.m4 configure
  7. rm doc/standards.info doc/autoconf.info
  8. # Do not use pregenerated manpages
  9. sed -i '/SUBDIRS/s/ man//' Makefile.am
  10. aclocal-1.7
  11. sed -i 's/2.54/2.53/' aclocal.m4
  12. cat config/m4.m4 >> aclocal.m4
  13. autoconf-2.53
  14. # Otherwise automake-1.7 fails to find autoconf
  15. ln -s "${PREFIX}"/bin/autoconf-2.53 "${PREFIX}"/bin/autoconf
  16. automake-1.7
  17. # Install autoconf data files into versioned directory
  18. for file in */*/Makefile.in */Makefile.in Makefile.in; do
  19. sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
  20. done
  21. }
  22. src_configure() {
  23. ./configure --prefix="${PREFIX}" --program-suffix=-2.54
  24. }
  25. src_compile() {
  26. # Workaround for racy make dependencies
  27. make -C bin autom4te
  28. make -C lib
  29. make "${MAKEJOBS}" MAKEINFO=true
  30. }
  31. src_install() {
  32. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  33. }