logo

live-bootstrap

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

pass1.sh (1342B)


  1. # SPDX-FileCopyrightText: 2021-23 fosslinux <fosslinux@aussies.space>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_prepare() {
  5. default
  6. # gettext translation files
  7. rm po/*.gmo
  8. # NOTE: misc-utils/scriptreplay.1 was originally a Pod::Man generated
  9. # manpage. However, it *has* been manually edited since then. In this
  10. # case, it is fine not to delete it; there is little-no risk.
  11. # generated/unauditable testdata
  12. rm -r tests/ts/blkid/images-fs tests/ts/cramfs/*.img
  13. # We don't have gettext (autopoint) yet.
  14. AUTOPOINT=true AUTOMAKE=automake-1.10 AUTOCONF=autoconf-2.64 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.64 autoreconf-2.64 -fi
  15. }
  16. src_configure() {
  17. ./configure --prefix="${PREFIX}" \
  18. --bindir="${PREFIX}/bin" \
  19. --sbindir="${PREFIX}/bin" \
  20. --libdir="${LIBDIR}" \
  21. --build=i386-unknown-linux-gnu \
  22. --disable-cramfs \
  23. --without-ncurses \
  24. --enable-static \
  25. --enable-static-programs=losetup,mount,umount,fdisk,sfdisk,blkid \
  26. --enable-shared=no \
  27. --disable-wall \
  28. ac_cv_type_loff_t=yes
  29. }
  30. src_install() {
  31. default
  32. # A weird behaviour I can't find the source of
  33. mv "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"* "${DESTDIR}${LIBDIR}/"
  34. rmdir "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"
  35. }