38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'mdcat'
|
|
pkgname=mdcat
|
|
version=2.0.3
|
|
revision=2
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config ruby-asciidoctor"
|
|
makedepends="openssl-devel"
|
|
depends="shared-mime-info"
|
|
checkdepends="shared-mime-info"
|
|
short_desc="Cat for markdown"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://github.com/swsnr/mdcat"
|
|
changelog="https://raw.githubusercontent.com/swsnr/mdcat/main/CHANGELOG.md"
|
|
distfiles="https://github.com/swsnr/mdcat/archive/refs/tags/mdcat-${version}.tar.gz"
|
|
checksum=18003b2fbbbd8e4d0c19826aa180c8e432a2fed391a398d4a8ae4f118d4b3010
|
|
make_check=ci-skip # uses network tests which fail in CI
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|arm*|aarch64*) ;;
|
|
*) broken="ftbfs in ring" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
for command in mdcat mdless; do
|
|
bash_completion=$(find ${wrksrc}/target -name ${command}.bash -print -quit)
|
|
vcompletion ${bash_completion} bash ${command}
|
|
zsh_completion=$(find ${wrksrc}/target -name _${command} -print -quit)
|
|
vcompletion ${zsh_completion} zsh ${command}
|
|
fish_completion=$(find ${wrksrc}/target -name ${command}.fish -print -quit)
|
|
vcompletion ${fish_completion} fish ${command}
|
|
done
|
|
|
|
man_page=$(find ${wrksrc}/target -name mdcat.1 -print -quit)
|
|
vman ${man_page}
|
|
ln -sf /usr/bin/mdcat ${DESTDIR}/usr/bin/mdless
|
|
}
|