]> Cypherpunks repositories - bass.git/commitdiff
mu-tools skel
authorSergey Matveev <stargrave@stargrave.org>
Fri, 14 Jun 2024 12:41:52 +0000 (15:41 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 14 Jun 2024 12:41:52 +0000 (15:41 +0300)
build/distfiles/.gitignore
build/distfiles/mu-1.10.8.tar.xz.meta4 [new file with mode: 0644]
build/skel/mail/mu-1.10.8.do [new file with mode: 0644]

index 1253b9c2b316f4f7cb72edb2724acbdc5ce039ae0935806923c69a5d812166de..8118be9a46aa3935799826c902a0d3261b5d2f2b55ef16c4fb54619e4fbab7c8 100644 (file)
 /mpc-1.3.1.tar.gz
 /mpfr-2.4.2.tar.xz
 /mpfr-4.2.1.tar.xz
+/mu-1.10.8.tar.xz
 /mupdf-1.24.0-170-g05063f228.tar.zst
 /mupdf/
 /mutt-2.2.13.tar.gz
diff --git a/build/distfiles/mu-1.10.8.tar.xz.meta4 b/build/distfiles/mu-1.10.8.tar.xz.meta4
new file mode 100644 (file)
index 0000000..5a7d6ab
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="mu-1.10.8.tar.xz">
+    <hash type="blake3-256">b7b332dabce3c75a99bc2d9203b1f8dd5563dbeaf82ee298010a759a8631b1c0</hash>
+    <hash type="blake2b-512">6e65e77544011d0f6b8fb1a5ac4dfe074fe6af3504e2ce2577185a280af43c8d40e7ec3ed6bde90c6b6c6b4cd678a6ae5bae9430f7c2a03451f3f08fffe1c963</hash>
+    <hash type="blake2b-256">f3ff18e274e04ff259016a9e1fa06e539115e967e019d02e64ab788606a2a4af</hash>
+    <hash type="skein-512">47e720dec62dd36a39aa860090606a9a78ac16c5e2c1b93f50caaf231d98e63d2d242a5cc62bdd4f3843329f9d8d19ca4ed53cd757b6083b634bdca7a61ff63a</hash>
+    <hash type="shake128">2479b8bda8443cd543e417f6fb8f83504a89d53b83d18fc95b7582f78346e157</hash>
+    <hash type="shake256">84249e6ce5cccc1ef456450c52a66032cdc00ae3a6f0d430cd6d15ed775a786483533fa1597fbd123c71fd7eb70abf473973d9718e1b57fe52fd5604b5e1b946</hash>
+    <hash type="sha-512">d77fe955c44c09272feb7cd903dfc6f2a3b5974b81fef82bdb553ed2079e68451bb1ed11ce338ee2dfe9be835f0d99cb4ce0c4b41f43ecfad76e978732243c71</hash>
+    <hash type="sha-256">6b11d8add2a7eeb0ebc4a5c7a6b9a9b3e1be8c5175c0c1c019a7ad8d7e363589</hash>
+    <hash type="streebog-512">1dca6c62de41ae578f2cc24b4aed5cd284e20794338273324d8a5a099ee7f28b89c768726378bbff9329edba9bd5af46815d06ec29924ebcabc9fb17491735cf</hash>
+    <hash type="streebog-256">968b728c6ad824884a058c8c9383eeeda5eba7a4f5e7f1ba63fec4c366f9d8b2</hash>
+    <hash type="xxh3-128">14ac6006434d5b0a1e98fc3a4be4b33e</hash>
+    <size>570792</size>
+    <url>https://github.com/djcb/mu/releases/download/v1.10.8/mu-1.10.8.tar.xz</url>
+  </file>
+</metalink>
diff --git a/build/skel/mail/mu-1.10.8.do b/build/skel/mail/mu-1.10.8.do
new file mode 100644 (file)
index 0000000..034a28e
--- /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/pkgconf-2.1.1 devel/ninja-v1.12.1"
+rdeps="databases/xapian-core-1.4.25"
+meson=meson-0.56.0
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.xz "$DISTFILES"/$meson.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"/$meson.tar.gz
+$TAR xf "$DISTFILES"/$NAME.tar.xz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+../$meson/meson.py build --prefix="$SKELBINS"/$ARCH/$NAME-$hsh >&2
+cd build
+ninja >&2
+ninja install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/prepare-preinst-010-rdeps $NAME-$hsh $rdeps
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh