commit: ddd8c8d380bd2d818604efe02ced9684a9060db2
parent 341a4681f5ffc03f23b9d4a2a0c22483f76c94e9
Author: fosslinux <fosslinux@aussies.space>
Date: Tue, 28 Nov 2023 14:18:34 +1100
Move simple-patch into a subdirectory
Add a checksum as well.
Closes #323
Diffstat:
4 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/sysa/run.kaem b/sysa/run.kaem
@@ -15,7 +15,10 @@ M2-Mesoplanet --architecture ${ARCH} -f checksum-transcriber.c -o ${BINDIR}/chec
sha256sum -c checksum-transcriber.${ARCH}.SHA256SUM
# simple patch tool based on before and after chunks
-M2-Mesoplanet --architecture ${ARCH} -f simple-patch.c -o ${BINDIR}/simple-patch
+pkg="simple-patch-1.0"
+cd ${pkg}
+kaem --file ${pkg}.kaem
+cd ..
# Environmental variables needed for mes
NYACC_PKG=nyacc-1.00.2
diff --git a/sysa/simple-patch-1.0/simple-patch-1.0.kaem b/sysa/simple-patch-1.0/simple-patch-1.0.kaem
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+set -ex
+
+# Build & install
+M2-Mesoplanet --architecture ${ARCH} -f src/simple-patch.c -o ${BINDIR}/simple-patch
+
+# Checksums
+if match x${UPDATE_CHECKSUMS} xTrue; then
+ sha256sum -o ${pkg}.checksums \
+ /usr/bin/simple-patch
+
+ cp ${pkg}.checksums ${SRCDIR}
+else
+ sha256sum -c ${pkg}.${ARCH}.checksums
+fi
diff --git a/sysa/simple-patch-1.0/simple-patch-1.0.x86.checksums b/sysa/simple-patch-1.0/simple-patch-1.0.x86.checksums
@@ -0,0 +1 @@
+bf49a897e96fe4052904aaedc8281f6849e3dc1836899d393c43726cc8f5e92e /usr/bin/simple-patch
diff --git a/sysa/simple-patch.c b/sysa/simple-patch-1.0/src/simple-patch.c