From e639a1a90115f37242f9a61bde96ce6607cd1a6e Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 12 Jan 2026 01:15:45 -0500 Subject: [PATCH 1/2] New package: mdBook-legacy-0.4.35. workaround for theme incompatibilities in newer mdbook versions Ref: void-linux/void-docs#840 Ref: void-linux/void-docs#841 --- srcpkgs/mdBook-legacy/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/mdBook-legacy/template diff --git a/srcpkgs/mdBook-legacy/template b/srcpkgs/mdBook-legacy/template new file mode 100644 index 00000000000000..303be9734a8e60 --- /dev/null +++ b/srcpkgs/mdBook-legacy/template @@ -0,0 +1,19 @@ +# Template file for 'mdBook-legacy' +pkgname=mdBook-legacy +version=0.4.35 +revision=1 +build_style=cargo +short_desc="Create book from markdown files. Like Gitbook but implemented in Rust" +maintainer="classabbyamp " +license="MPL-2.0" +homepage="https://github.com/rust-lang/mdBook" +changelog="https://raw.githubusercontent.com/rust-lang/mdBook/master/CHANGELOG.md" +distfiles="https://github.com/rust-lang/mdBook/archive/refs/tags/v${version}.tar.gz" +checksum=2fcefce12acc957c1d604e60c309502b9ec37040f6f70656f12c81374ff27bd4 + +short_desc+=" - legacy version for void-docs" + +post_install() { + vlicense LICENSE + mv "${DESTDIR}"/usr/bin/mdbook "${DESTDIR}"/usr/bin/mdbook-legacy +} From f2d5d6fa2059f9599cea61cfc7e4a0e3c1320702 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 12 Jan 2026 01:17:39 -0500 Subject: [PATCH 2/2] WIP: void-docs: update to 2026.01.12. --- srcpkgs/void-docs/template | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/srcpkgs/void-docs/template b/srcpkgs/void-docs/template index c7beb056f83f82..c160cdca189b83 100644 --- a/srcpkgs/void-docs/template +++ b/srcpkgs/void-docs/template @@ -1,8 +1,9 @@ # Template file for 'void-docs' pkgname=void-docs -version=2025.01.25 +version=2026.01.12 revision=1 -hostmakedepends="mdBook lowdown texlive perl perl-JSON perl-File-Which librsvg-utils" +build_style=gnu-makefile +hostmakedepends="mdBook-legacy lowdown mdbook-typst" short_desc="Documentation for Void Linux" maintainer="Érico Nogueira " license="CC-BY-SA-4.0" @@ -10,14 +11,6 @@ homepage="https://github.com/void-linux/void-docs" distfiles="https://github.com/void-linux/void-docs/archive/refs/tags/${version}.tar.gz" checksum=3147216906b6b2ae5bfc57641a8edb2e27d429aa8e2ef867d3d6c76ce6d40f29 -do_build() { - PREFIX=/usr res/build.sh -} - -do_install() { - PREFIX=/usr DESTDIR="$DESTDIR" res/install.sh -} - void-docs-browse_package() { depends="${sourcepkg}>=${version}_${revision} pick lowdown" short_desc+=" - browsing utilities"