live-bootstrap/sysa/patch-2.5.9/patch-2.5.9.kaem
fosslinux f1600467a7 Variety of improvements
- Rename sources to distfiles for clarity.
- Per sys(a/c) distfiles to reduce rootfs.py processing and reduce RAM
  usage in sysa.
- Canonicalise early kaem mes/tcc files to kaem script conventions.
- Cleanup unused setup in python.
2022-05-05 17:44:47 +10:00

39 lines
606 B
Bash
Executable file

#!/bin/sh
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -ex
mkdir build src
cd build
# Extract
cp ${distfiles}/${pkg}.tar.gz ../src/
gunzip -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
# Compile
# Build
make -f Makefile PREFIX=${prefix}
# Install
cp patch ${prefix}/bin/patch
chmod 755 ${prefix}/bin/patch
cd ../..
# Checksums
sha256sum -c checksums