mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(payload-import): keep manifest order and make pass1.sh build-helper compatible
This commit is contained in:
parent
53a7d33e2b
commit
2468793e87
1 changed files with 14 additions and 10 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue