logo

live-bootstrap

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

pass1.sh (1041B)


  1. # SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. src_prepare() {
  6. default
  7. rm doc/amhello-1.0.tar.gz doc/automake-history.info doc/automake.info*
  8. grep "DO NOT EDIT BY HAND" -r t -l | while read f; do
  9. rm "$f"
  10. done
  11. # Building doc often causes race conditions, skip it
  12. sed -i '/doc\/Makefile.inc/d' Makefile.am
  13. sed -i '/t\/Makefile.inc/d' Makefile.am
  14. AUTOCONF="autoconf-2.69 -f" AUTOM4TE=autom4te-2.69 ./bootstrap
  15. }
  16. src_configure() {
  17. AUTORECONF=autoreconf-2.69 AUTOM4TE=autom4te-2.69 AUTOHEADER=autoheader-2.69 AUTOCONF="autoconf-2.69 -f" ./configure --prefix="${PREFIX}"
  18. }
  19. src_compile() {
  20. AUTORECONF=autoreconf-2.69 AUTOM4TE=autom4te-2.69 AUTOHEADER=autoheader-2.69 AUTOCONF="autoconf-2.69 -f" make -j1 MAKEINFO=true
  21. }
  22. src_install() {
  23. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  24. rm "${DESTDIR}/usr/bin/automake" "${DESTDIR}/usr/bin/aclocal"
  25. }