]> Cypherpunks repositories - bass.git/commitdiff
Add liboqs
authorSergey Matveev <stargrave@stargrave.org>
Tue, 10 Feb 2026 09:04:59 +0000 (12:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 10 Feb 2026 09:04:59 +0000 (12:04 +0300)
build/distfiles/.gitignore
build/distfiles/liboqs-0.15.0.tar.gz.meta4 [new file with mode: 0644]
build/skel/security/liboqs-0.15.0.do [new file with mode: 0644]

index 1abe8af711e62287bbf96bd46afda03414a1fc25044ac94fb0c202753111b33b..66b957f19388c7f7639911377de5d4a4f2db69da35e44f92282883993476ca9f 100644 (file)
 /libogg-1.3.6.tar.xz
 /libopusenc-v0.3.tar.zst
 /libopusenc.git/
+/liboqs-0.15.0.tar.gz
 /libotr-4.1.1.tar.gz
 /libplacebo-v6.338.0-117-g5c1e6da2.tar.zst
 /libplacebo/
diff --git a/build/distfiles/liboqs-0.15.0.tar.gz.meta4 b/build/distfiles/liboqs-0.15.0.tar.gz.meta4
new file mode 100644 (file)
index 0000000..08d460d
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="liboqs-0.15.0.tar.gz">
+    <hash type="blake3-256">dfeaf398c8fa79ef2f980ed177e7136727c04d85833c13a82cbae9b77a7e2786</hash>
+    <hash type="blake2b-512">1fab7fe7e77ae7725edeaf88810cd3ca06ea035d3832f28a188701db597c1221da56f09c4fdbb53510efcfaebc7d33163370c9566fe226b1ea0cafdbc71e7adc</hash>
+    <hash type="blake2b-256">51521fe2c88ab9cdfb1fc2c71f981caad0056d8cdae7d68e1378c06b87e3696b</hash>
+    <hash type="skein-512">b8a3ecd4504815eff085203ead58347a7f1b9cfe1027d567ff6e712961f60502cc7c1ccc4e3106dded9200f1f353d44cf553398eb5e1dbb63f9a39bf5ea34d2f</hash>
+    <hash type="shake128">d7e7afa71f9624afbe14a2acab4678f2e364550d35002caf25dfdc7e72bf991f</hash>
+    <hash type="shake256">dfac71a2eab1ccf9074517f13a78f3e4c911b69a51473bde75a6565d44f04e08c8af0ff332c894bfd4242d71657a68281e6f124c06636e3e6e877cef071df11a</hash>
+    <hash type="sha-512">d4a48335e2848c4ea4f5615af7846b21f83a9d8ff5256ebd0d27fa52e21bae3338de138770f07a4befea35b94f20ec8fd897594d45948c86d41c95cfe07be151</hash>
+    <hash type="sha-256">3983f7cd1247f37fb76a040e6fd684894d44a84cecdcfbdb90559b3216684b5c</hash>
+    <hash type="streebog-512">7a8a56240b6c5b747ae12fcbcff393a1fbec59f229563d404864bd94d26f67c4b98b47db89f9482d958b2759bed4c8c48fd3f3428e95c999e13a41726aad973c</hash>
+    <hash type="streebog-256">5be91401a986bf93fee30e59971e2e34b3d4b08c14309ebe870ef5d00647e3a5</hash>
+    <hash type="xxh3-128">628dcd16fc89af5126ef8ccac35a47ef</hash>
+    <size>57000994</size>
+    <url>https://github.com/open-quantum-safe/liboqs/archive/refs/tags/0.15.0.tar.gz</url>
+  </file>
+</metalink>
diff --git a/build/skel/security/liboqs-0.15.0.do b/build/skel/security/liboqs-0.15.0.do
new file mode 100644 (file)
index 0000000..f968aae
--- /dev/null
@@ -0,0 +1,25 @@
+[ -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 devel/cmake-3.28.3"
+rdeps=security/openssl-1.1.1w
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.gz $rdeps
+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 $rdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.gz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd liboqs-0.15.0
+mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX="$SKELBINS"/$ARCH/$NAME-$hsh \
+    -DOQS_BUILD_ONLY_LIB=on .. >&2
+make -j$MAKE_JOBS >&2
+make install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/prepare-preinst-010-rdeps $NAME-$hsh $rdeps
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh