Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions srcpkgs/mdBook-legacy/template
Original file line number Diff line number Diff line change
@@ -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 <void@placeviolette.net>"
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
}
13 changes: 3 additions & 10 deletions srcpkgs/void-docs/template
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
# 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 <ericonr@disroot.org>"
license="CC-BY-SA-4.0"
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"
Expand Down
Loading