blake3 cryptographic hash function implementation: ver. 1.5.5

This commit is contained in:
uglyside
2025-02-11 15:44:30 +03:00
parent 7513dab723
commit 9c70b6e6f7
2 changed files with 87 additions and 0 deletions
+31
View File
@@ -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)
+56
View File
@@ -0,0 +1,56 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>blake3</Name>
<Homepage>https://github.com/BLAKE3-team/BLAKE3</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>Apachev2.0</License>
<License>CC0v1.0</License>
<PartOf>util.crypt</PartOf>
<Summary>The Rust and C implementations of the BLAKE3 cryptographic hash function.</Summary>
<Description>BLAKE3 is based on an optimized instance of the established hash function BLAKE2 and on the original Bao tree mode.</Description>
<Archive sha1sum="6ac365ee86a78cae00a118c53e82466e0ae70d50" type="targz">https://github.com/BLAKE3-team/BLAKE3/archive/1.5.5/BLAKE3-1.5.5.tar.gz</Archive>
<BuildDependencies>
<Dependency>rust</Dependency>
<Dependency>cmake</Dependency>
<Dependency>ninja</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1"></Patch> -->
</Patches>
</Source>
<Package>
<Name>blake3</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
<Package>
<Name>blake3-devel</Name>
<RuntimeDependencies>
<Dependency release="current">blake3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/cmake</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2025-02-11</Date>
<Version>1.5.5</Version>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>