Skip to content

Commit 2468793

Browse files
committed
fix(payload-import): keep manifest order and make pass1.sh build-helper compatible
1 parent 53a7d33 commit 2468793

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

steps/payload-import-1.0/pass1.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# SPDX-FileCopyrightText: 2026 live-bootstrap contributors
44
# SPDX-License-Identifier: MIT
55

6-
set -ex
6+
src_get() {
7+
:
8+
}
79

8-
cd src
9-
gcc -m32 -march=i386 -std=c89 -static -o ${BINDIR}/payload-import payload-import.c
10-
cd ..
10+
src_unpack() {
11+
dirname=.
12+
cp -r ../src .
13+
}
1114

12-
if match x${UPDATE_CHECKSUMS} xTrue; then
13-
sha256sum -o ${pkg}.checksums \
14-
/usr/bin/payload-import
15+
src_compile() {
16+
gcc -m32 -march=i386 -std=c89 -static -o payload-import src/payload-import.c
17+
}
1518

16-
cp ${pkg}.checksums ${SRCDIR}
17-
fi
19+
src_install() {
20+
install -D payload-import "${DESTDIR}${BINDIR}/payload-import"
21+
}

0 commit comments

Comments
 (0)