mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Unfortunatley the sha2 project does not have versioned releases so we use the latest commit. We have also manually added a frontend to sha-2 to allow us to invoke it from the command line, thanks bittrof for the help!
30 lines
468 B
Bash
Executable file
30 lines
468 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
set -ex
|
|
|
|
cd build
|
|
|
|
# Extract
|
|
gunzip ../src/${pkg}.tar.gz
|
|
tar xf ../src/${pkg}.tar
|
|
cd sha-2-61555d45676473e77c11f8da97301e2d2b865871
|
|
|
|
# Patch
|
|
patch -Np0 -i ../../patches/frontend.patch
|
|
|
|
# Compile
|
|
tcc -c -o sha-256.o sha-256.c
|
|
|
|
# Link
|
|
tcc -static -o ${bindir}/sha256sum sha-256.o
|
|
|
|
# No test avaliable
|
|
|
|
cd ../..
|
|
|
|
# Checksums
|
|
fletcher16 checksums
|