# Template file for 'lastpass-cli'
pkgname=lastpass-cli
version=1.3.3
revision=4
build_style=cmake
make_install_target="install install-doc"
hostmakedepends="asciidoc pkg-config"
makedepends="bash-completion libcurl-devel libxml2-devel"
short_desc="Command line interface to LastPass.com"
maintainer="Michael Carlberg <c@rlberg.se>"
license="GPL-2.0-or-later"
homepage="https://lastpass.com/"
changelog="https://github.com/lastpass/${pkgname}/blob/v${version}/CHANGELOG.md"
distfiles="https://github.com/lastpass/${pkgname}/archive/v${version}.tar.gz"
checksum=f38e1ee7e06e660433a575a23b061c2f66ec666d746e988716b2c88de59aed73

CFLAGS="-fcommon"

post_install() {
	vmkdir usr/share/examples/lpass
	vcopy contrib/examples/* usr/share/examples/lpass
	vcompletion contrib/lpass_bash_completion bash lpass
	vcompletion contrib/lpass_zsh_completion zsh lpass
	vcompletion contrib/completions-lpass.fish fish lpass
}
