]> Cypherpunks repositories - bass.git/commitdiff
b2sum skel
authorSergey Matveev <stargrave@stargrave.org>
Tue, 25 Jun 2024 10:19:17 +0000 (13:19 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 25 Jun 2024 10:19:17 +0000 (13:19 +0300)
build/distfiles/.gitignore
build/distfiles/b2sum-2024-06-25.tar.zst.do [new file with mode: 0644]
build/skel/security/b2sum-2024-06-25.do [new file with mode: 0644]

index d6ea2eb3393f6f8e4ccbd50d5e0570ec625f9ac9a8fda8d4867c65c8492e227a..983e0c83d152ddc0ff135fc2764ef6275cca6622eb7657eca598839478a890d4 100644 (file)
@@ -8,10 +8,12 @@
 /aria2-1.37.0.tar.xz
 /autoconf-2.72.tar.xz
 /automake-1.16.5.tar.xz
+/b2sum-2024-06-25.tar.zst
 /b3sum-1.5.0.tar.gz
 /bash-5.2.21.tar.gz
 /bfs-3.1.3.tar.zst
 /bfs.git/
+/BLAKE2.git/
 /boost_1_74_0.tar.bz2
 /c-ares-1.30.0.tar.gz
 /cairo-1.16.0.tar.xz
diff --git a/build/distfiles/b2sum-2024-06-25.tar.zst.do b/build/distfiles/b2sum-2024-06-25.tar.zst.do
new file mode 100644 (file)
index 0000000..72fb647
--- /dev/null
@@ -0,0 +1,7 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+[ -d BLAKE2.git ] || git clone --depth 1 --bare https://github.com/BLAKE2/BLAKE2.git >&2
+cd BLAKE2.git
+commit=ed1974ea83433eba7b2d95c5dcd9ac33cb847913
+git fetch origin $commit >&2
+git archive --prefix=${1%.tar.zst}/ $commit | $COMPRESSOR
diff --git a/build/skel/security/b2sum-2024-06-25.do b/build/skel/security/b2sum-2024-06-25.do
new file mode 100644 (file)
index 0000000..b9aa7ff
--- /dev/null
@@ -0,0 +1,21 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.zst
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.zst
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME/sse
+make -j$MAKE_JOBS CC=cc >&2
+mkdir -p "$SKELBINS"/$ARCH/$NAME-$hsh/bin
+mv blake2b blake2s blake2bp blake2sp blake2xb blake2xs \
+    "$SKELBINS"/$ARCH/$NAME-$hsh/bin
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh