# Template file for 'lsd'
pkgname=lsd
version=1.2.0
revision=1
build_style=cargo
hostmakedepends="pkg-config pandoc"
makedepends="libgit2-1.9-devel"
checkdepends="git"
short_desc="Next gen ls command with lots of pretty colors and awesome icons"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/lsd-rs/lsd"
changelog="https://github.com/lsd-rs/lsd/releases"
distfiles="https://github.com/lsd-rs/lsd/archive/refs/tags/v${version}.tar.gz"
checksum=dae8d43087686a4a1de0584922608e9cbab00727d0f72e4aa487860a9cbfeefa
conflicts="disputils"

export SHELL_COMPLETIONS_DIR="${wrksrc}"

post_install() {
	vcompletion lsd.bash bash
	vcompletion lsd.fish fish
	vcompletion _lsd zsh

	pandoc --standalone --to man --output lsd.1 doc/lsd.md
	vman lsd.1
}
