fix(payload-import): keep manifest order and make pass1.sh build-helper compatible

This commit is contained in:
vxtls 2026-03-20 12:42:25 -04:00
parent 53a7d33e2b
commit 2468793e87

View file

@ -1,17 +1,21 @@
#!/bin/sh
#!/bin/bash
#
# SPDX-FileCopyrightText: 2026 live-bootstrap contributors
# SPDX-License-Identifier: MIT
set -ex
src_get() {
:
}
cd src
gcc -m32 -march=i386 -std=c89 -static -o ${BINDIR}/payload-import payload-import.c
cd ..
src_unpack() {
dirname=.
cp -r ../src .
}
if match x${UPDATE_CHECKSUMS} xTrue; then
sha256sum -o ${pkg}.checksums \
/usr/bin/payload-import
src_compile() {
gcc -m32 -march=i386 -std=c89 -static -o payload-import src/payload-import.c
}
cp ${pkg}.checksums ${SRCDIR}
fi
src_install() {
install -D payload-import "${DESTDIR}${BINDIR}/payload-import"
}