21 lines
483 B
Bash
21 lines
483 B
Bash
#!/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/checksum-transcriber.c -o ${BINDIR}/checksum-transcriber
|
|
|
|
# Checksums
|
|
if match x${UPDATE_CHECKSUMS} xTrue; then
|
|
sha256sum -o ${pkg}.${ARCH}.checksums \
|
|
/usr/bin/checksum-transcriber
|
|
|
|
cp ${pkg}.${ARCH}.checksums ${SRCDIR}
|
|
else
|
|
sha256sum -c ${pkg}.${ARCH}.checksums
|
|
fi
|