logo

live-bootstrap

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

pass1.kaem (774B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2021-22 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
  10. cd build
  11. # Extract
  12. ungz --file ${DISTFILES}/${pkg}.tar.gz --output ${pkg}.tar
  13. untar --file ${pkg}.tar
  14. rm ${pkg}.tar
  15. cd ${pkg}
  16. cp ../../mk/main.mk Makefile
  17. # Create config.h and patchlevel.h
  18. catm config.h
  19. catm patchlevel.h
  20. # Build
  21. make -f Makefile PREFIX=${PREFIX}
  22. # Install
  23. cp patch ${PREFIX}/bin/patch
  24. chmod 755 ${PREFIX}/bin/patch
  25. cd ../..
  26. # Checksums
  27. if match x${UPDATE_CHECKSUMS} xTrue; then
  28. sha256sum -o ${pkg}.checksums \
  29. /usr/bin/patch
  30. cp ${pkg}.checksums ${SRCDIR}
  31. else
  32. sha256sum -c ${pkg}.checksums
  33. fi