void-packages/srcpkgs/void-docs/template

30 lines
687 B
Bash

# Template file for 'void-docs'
pkgname=void-docs
version=2020.08.18
revision=2
archs=noarch
hostmakedepends="mdBook fd pandoc texlive perl perl-JSON"
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="${homepage}/archive/${version}.tar.gz"
checksum=52b621a3d15ba4c5f5a33a6c1a27efa5bde9739334d277f22026bfd603f6f24b
export PREFIX=/usr
do_build() {
res/build.sh
}
do_install() {
export DESTDIR
res/install.sh
}
void-docs-browse_package() {
depends="${sourcepkg}>=${version}_${revision} fzf mdcat"
short_desc+=" - browsing utilities"
build_style=meta
}