logo

live-bootstrap

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

pass1.sh (929B)


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