mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
- Rather than defining the urls where they are gotten (python sysa, python sysc, inside sysc), a spec file is now used that is easily interpretable and tool-independent. - This is interpreted by rootfs.py and inside sysc. - This is also used to make sources available and extract sources. - Manual dirname selection is no longer required as is tarball renaming upon download - all of this is handled automatically. Fixes #188
48 lines
838 B
Bash
Executable file
48 lines
838 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
set -ex
|
|
|
|
# Check tarball checksums
|
|
checksum-transcriber sources
|
|
sha256sum -c sources.SHA256SUM
|
|
|
|
mkdir build src
|
|
cd build
|
|
|
|
# Extract
|
|
cp ${distfiles}/${pkg}.tar.gz ../src/
|
|
gzip -d -f ../src/${pkg}.tar.gz
|
|
tar xf ../src/${pkg}.tar
|
|
cd ${pkg}
|
|
cp ../../mk/main.mk Makefile
|
|
|
|
# Create config.h and patchlevel.h
|
|
catm config.h
|
|
catm patchlevel.h
|
|
|
|
# Patch
|
|
cp pch.c pch_patched.c
|
|
sed -i 841,848d pch_patched.c
|
|
|
|
# Build
|
|
make -f Makefile PREFIX=${prefix}
|
|
|
|
# Install
|
|
cp patch ${prefix}/bin/patch
|
|
chmod 755 ${prefix}/bin/patch
|
|
|
|
cd ../..
|
|
|
|
# Checksums
|
|
if match x${UPDATE_CHECKSUMS} xTrue; then
|
|
sha256sum -o ${pkg}.checksums \
|
|
/usr/bin/patch
|
|
|
|
cp ${pkg}.checksums ${srcdir}
|
|
else
|
|
sha256sum -c ${pkg}.checksums
|
|
fi
|