logo

live-bootstrap

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

pass1.sh (1109B)


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