live-bootstrap/sysa/patch-2.5.9/patch-2.5.9.kaem

40 lines
606 B
Plaintext
Raw Normal View History

2021-01-13 10:51:31 +00:00
#!/bin/sh
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
2021-02-08 06:23:31 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
2021-01-13 10:51:31 +00:00
set -ex
mkdir build src
2021-01-20 01:43:40 +00:00
cd build
# Extract
cp ${distfiles}/${pkg}.tar.gz ../src/
gunzip -f ../src/${pkg}.tar.gz
2021-01-20 01:43:40 +00:00
tar xf ../src/${pkg}.tar
cd ${pkg}
cp ../../mk/main.mk Makefile
2021-01-13 10:51:31 +00:00
# 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
2021-01-20 01:43:40 +00:00
cd ../..
# Checksums
2021-06-10 18:01:47 +01:00
sha256sum -c checksums