fix(manifest): move payload-import after gcc and convert to pass1.sh

This commit is contained in:
vxtls 2026-03-22 13:09:38 -04:00
parent be3900142b
commit 2f7951a352
3 changed files with 22 additions and 18 deletions

View file

@ -1,17 +0,0 @@
#!/bin/sh
#
# SPDX-FileCopyrightText: 2026 live-bootstrap contributors
# SPDX-License-Identifier: MIT
set -ex
cd src
tcc -m32 -march=i386 -std=c89 -static -I../../tcc/tcc-0.9.27/include -o ${BINDIR}/payload-import payload-import.c
cd ..
if match x${UPDATE_CHECKSUMS} xTrue; then
sha256sum -o ${pkg}.checksums \
/usr/bin/payload-import
cp ${pkg}.checksums ${SRCDIR}
fi

View file

@ -0,0 +1,21 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2026 live-bootstrap contributors
# SPDX-License-Identifier: MIT
src_get() {
:
}
src_unpack() {
dirname=.
cp -r ../src .
}
src_compile() {
gcc -m32 -march=i386 -std=c89 -static -o payload-import src/payload-import.c
}
src_install() {
install -D payload-import "${DESTDIR}${BINDIR}/payload-import"
}