logo

live-bootstrap

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

pass1.kaem (791B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2025 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. set -ex
  6. # Check tarball checksums
  7. checksum-transcriber sources
  8. sha256sum -c sources.SHA256SUM
  9. mkdir build src
  10. cd build
  11. # Extract
  12. cp ${DISTFILES}/${pkg}.tar.gz ../src/${pkg}.tar.gz
  13. gunzip -f ../src/${pkg}.tar.gz
  14. tar xf ../src/${pkg}.tar
  15. rm -r ../src/
  16. cd ${pkg}
  17. # Prepare
  18. cp ../../mk/main.mk Makefile
  19. touch config.h
  20. patch -Np1 -i ../../patches/meslibc.patch
  21. patch -Np1 -i ../../patches/tcc.patch
  22. # Build
  23. make
  24. # Install
  25. make install
  26. cd ../..
  27. # Checksums
  28. if match x${UPDATE_CHECKSUMS} xTrue; then
  29. sha256sum -o ${pkg}.checksums \
  30. /usr/bin/yacc \
  31. /usr/bin/yyfix
  32. install ${pkg}.checksums ${SRCDIR}
  33. else
  34. sha256sum -c ${pkg}.checksums
  35. fi