logo

live-bootstrap

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

pass1.sh (1270B)


  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/*.info
  8. rm man/*.1
  9. rm tests/*.at
  10. # Do not use pregenerated manpages
  11. sed -i '/SUBDIRS/s/ man//' Makefile.am
  12. aclocal-1.7
  13. sed -i 's/2.54/2.53/' aclocal.m4
  14. cat config/m4.m4 >> aclocal.m4
  15. autoconf-2.53
  16. # Otherwise automake-1.7 fails to find autoconf
  17. automake-1.7
  18. # Install autoconf data files into versioned directory
  19. for file in */*/Makefile.in */Makefile.in Makefile.in; do
  20. sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
  21. done
  22. }
  23. src_configure() {
  24. ./configure --prefix="${PREFIX}" --program-suffix=-2.54
  25. }
  26. src_compile() {
  27. # Workaround for racy make dependencies
  28. make -C bin autom4te
  29. make -C lib
  30. make "${MAKEJOBS}" MAKEINFO=true
  31. }
  32. src_install() {
  33. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  34. ln -s autoconf-2.54 "${DESTDIR}${PREFIX}/bin/autoconf"
  35. ln -s autoheader-2.54 "${DESTDIR}${PREFIX}/bin/autoheader"
  36. ln -s autom4te-2.54 "${DESTDIR}${PREFIX}/bin/autom4te"
  37. ln -s autoreconf-2.54 "${DESTDIR}${PREFIX}/bin/autoreconf"
  38. }