logo

live-bootstrap

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

pass1.sh (1180B)


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