logo

live-bootstrap

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

pass1.sh (1013B)


  1. # SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_prepare() {
  5. rm doc/*.info
  6. rm man/*.1
  7. rm -f tests/*.at
  8. sed -i -e '/AC_PROG_GREP/d' -e '/AC_PROG_SED/d' configure.ac
  9. AUTOMAKE=automake-1.8 ACLOCAL=aclocal-1.8 AUTOM4TE=autom4te-2.59 AUTOCONF=autoconf-2.59 autoreconf-2.59 -f
  10. # Install autoconf data files into versioned directory
  11. for file in */*/Makefile.in */Makefile.in Makefile.in; do
  12. sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
  13. done
  14. }
  15. src_configure() {
  16. ./configure --prefix="${PREFIX}" --program-suffix=-2.61
  17. }
  18. src_compile() {
  19. make -j1 MAKEINFO=true PREFIX="${PREFIX}"
  20. }
  21. src_install() {
  22. make install MAKEINFO=true DESTDIR="${DESTDIR}"
  23. ln -s autoconf-2.61 "${DESTDIR}${PREFIX}/bin/autoconf"
  24. ln -s autoheader-2.61 "${DESTDIR}${PREFIX}/bin/autoheader"
  25. ln -s autom4te-2.61 "${DESTDIR}${PREFIX}/bin/autom4te"
  26. ln -s autoreconf-2.61 "${DESTDIR}${PREFIX}/bin/autoreconf"
  27. }