diff --git a/util/crypt/blake3/actions.py b/util/crypt/blake3/actions.py new file mode 100644 index 0000000000..8b1a9b47a8 --- /dev/null +++ b/util/crypt/blake3/actions.py @@ -0,0 +1,31 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import shelltools, cmaketools, mesontools, pisitools + +def setup(): + i = ''.join([ + ' -DCMAKE_INSTALL_PREFIX=/usr', + ' -DCMAKE_BUILD_TYPE=None', + ' -DBUILD_SHARED_LIBS=ON', + ' -Bbuild -G Ninja -L ' + ]) + cmaketools.configure(i, sourceDir = "c") + shelltools.cd("b3sum") + shelltools.system("cargo fetch --locked") + +def build(): + mesontools.build() + shelltools.cd("b3sum") + shelltools.system("cargo build --release") # passed with --ignore-sandbox + +def install(): + mesontools.install() + + pisitools.dobin("b3sum/target/release/b3sum") + + for l in ["A2", "A2LLVM", "CC0"]: + pisitools.dodoc("LICENSE_%s" % l) diff --git a/util/crypt/blake3/pspec.xml b/util/crypt/blake3/pspec.xml new file mode 100644 index 0000000000..a0902f66fa --- /dev/null +++ b/util/crypt/blake3/pspec.xml @@ -0,0 +1,56 @@ + + + + + blake3 + https://github.com/BLAKE3-team/BLAKE3 + + fury + uglyside@yandex.ru + + Apachev2.0 + CC0v1.0 + util.crypt + The Rust and C implementations of the BLAKE3 cryptographic hash function. + BLAKE3 is based on an optimized instance of the established hash function BLAKE2 and on the original Bao tree mode. + https://github.com/BLAKE3-team/BLAKE3/archive/1.5.5/BLAKE3-1.5.5.tar.gz + + rust + cmake + ninja + + + + + + + + blake3 + + /usr/bin + /usr/lib + /usr/share + + + + + blake3-devel + + blake3 + + + /usr/include + /usr/lib/cmake + /usr/lib/pkgconfig + + + + + + 2025-02-11 + 1.5.5 + fury + uglyside@yandex.ru + + +