logo

live-bootstrap

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

pass1.sh (1254B)


  1. # SPDX-FileCopyrightText: 2021-2022 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_prepare() {
  5. default
  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.6
  13. cat config/m4.m4 >> aclocal.m4
  14. autoconf-2.52
  15. automake-1.6
  16. # Not supported by autoconf-2.52
  17. sed -i "s#@abs_top_builddir@#$PWD#" tests/wrappl.in
  18. sed -i "s#@abs_top_srcdir@#$PWD#" tests/wrappl.in
  19. # Install autoconf data files into versioned directory
  20. for file in */*/Makefile.in */Makefile.in Makefile.in; do
  21. sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
  22. done
  23. }
  24. src_configure() {
  25. ./configure --prefix="${PREFIX}" --program-suffix=-2.53
  26. }
  27. src_compile() {
  28. make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
  29. }
  30. src_install() {
  31. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  32. ln -s autoconf-2.53 "${DESTDIR}${PREFIX}/bin/autoconf"
  33. ln -s autoheader-2.53 "${DESTDIR}${PREFIX}/bin/autoheader"
  34. ln -s autom4te-2.53 "${DESTDIR}${PREFIX}/bin/autom4te"
  35. ln -s autoreconf-2.53 "${DESTDIR}${PREFIX}/bin/autoreconf"
  36. }