32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Template file for 'mdcat'
|
|
pkgname=mdcat
|
|
version=0.26.1
|
|
revision=1
|
|
wrksrc="${pkgname}"
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config ruby-asciidoctor"
|
|
makedepends="openssl-devel"
|
|
short_desc="Cat for markdown"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://codeberg.org/flausch/mdcat/"
|
|
changelog="https://codeberg.org/flausch/mdcat/raw/branch/main/CHANGELOG.md"
|
|
distfiles="https://codeberg.org/flausch/mdcat/archive/mdcat-${version}.tar.gz"
|
|
checksum=1120c4f3b5b517075b6347dbfe76a2211a91837b4d0242c0b72cdbc19e6886dd
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
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}
|
|
}
|