34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'mdcat'
|
|
pkgname=mdcat
|
|
version=0.25.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config ruby-asciidoctor"
|
|
makedepends="openssl-devel"
|
|
short_desc="Cat for markdown"
|
|
maintainer="Wilson Birney <wpb@360scada.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://github.com/lunaryorn/mdcat"
|
|
changelog="https://raw.githubusercontent.com/lunaryorn/mdcat/main/CHANGELOG.md"
|
|
distfiles="https://github.com/lunaryorn/mdcat/archive/mdcat-${version}.tar.gz"
|
|
checksum=92fddabab24f2e7d673b06c1f31a7746abbb547c5581faaed17a8e3e1e5b17a5
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv6l|armv7l) broken="https://build.voidlinux.org/builders/armv7l_builder/builds/36158/steps/shell_3/logs/stdio" ;;
|
|
x86_64*|i686*|arm*|aarch64*) ;;
|
|
*) broken="ftbfs in ring" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
bash_completion=$(find ${wrksrc}/target -name mdcat.bash -print -quit)
|
|
vcompletion ${bash_completion} bash
|
|
zsh_completion=$(find ${wrksrc}/target -name _mdcat -print -quit)
|
|
vcompletion ${zsh_completion} zsh
|
|
fish_completion=$(find ${wrksrc}/target -name mdcat.fish -print -quit)
|
|
vcompletion ${fish_completion} fish
|
|
|
|
man_page=$(find ${wrksrc}/target -name mdcat.1 -print -quit)
|
|
vman ${man_page}
|
|
}
|