logo

live-bootstrap

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

pass1.sh (734B)


  1. # SPDX-FileCopyrightText: 2021 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_compile() {
  6. rm doc/standards.info doc/autoconf.info
  7. cp autoconf.in autoconf
  8. sed -i -e "s# @SHELL@#/bin/sh#" -e 's/@M4@/m4/' -e 's/@AWK@/awk/' \
  9. -e 's/@PACKAGE_NAME@/Autoconf/' -e 's/@VERSION@/2.52/' \
  10. -e "s#@datadir@#${PREFIX}/share/autoconf-2.52#" autoconf
  11. chmod +x autoconf
  12. m4 autoconf.m4 --freeze-state=autoconf.m4f
  13. }
  14. src_install() {
  15. install -D autoconf "${DESTDIR}${PREFIX}/bin/autoconf-2.52"
  16. mkdir -p "${DESTDIR}${PREFIX}/share/autoconf-2.52"
  17. cp -r -- *.m4* "${DESTDIR}${PREFIX}/share/autoconf-2.52/"
  18. }