logo

live-bootstrap

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

pass1.sh (805B)


  1. # SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_get() {
  5. # Before the last pass the tar file is moved before
  6. # the linux build removes all distfiles to save space.
  7. if [ -e "../${pkg}.tar.gz" ]; then
  8. mkdir "${DISTFILES}"
  9. mv "../${pkg}.tar.gz" "${DISTFILES}"
  10. else
  11. default
  12. fi
  13. }
  14. src_configure() {
  15. CC=gcc ./configure \
  16. --host=i386-unknown-linux-musl \
  17. --disable-shared \
  18. --prefix="${PREFIX}" \
  19. --libdir="${LIBDIR}" \
  20. --includedir="${PREFIX}/include/"
  21. # configure script creates this file
  22. if test -f /dev/null; then
  23. rm /dev/null
  24. mknod -m 666 /dev/null c 1 3
  25. fi
  26. }
  27. src_compile() {
  28. make "${MAKEJOBS}" CROSS_COMPILE=
  29. }