logo

live-bootstrap

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

pass1.sh (689B)


  1. # SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. # We manually compile here because ./Configure uses metaconfig itself
  5. # *sigh*
  6. src_prepare() {
  7. default
  8. sed 's/@PERLVER@/5.10.1/' config.sh.in > config.sh
  9. }
  10. src_compile() {
  11. cd mcon
  12. ./mconfig.SH
  13. perl ../bin/perload -o mconfig > metaconfig
  14. cd ..
  15. cd kit
  16. ./manifake.SH
  17. cd ..
  18. }
  19. src_install() {
  20. mkdir -p "${DESTDIR}${PREFIX}/bin/" "${DESTDIR}${PREFIX}/lib/perl5/5.10.1"
  21. install mcon/metaconfig "${DESTDIR}${PREFIX}/bin/"
  22. install kit/manifake "${DESTDIR}${PREFIX}/bin/"
  23. cp -r mcon/U/ "${DESTDIR}${PREFIX}/lib/perl5/5.10.1/"
  24. }