32 lines
1001 B
Bash
32 lines
1001 B
Bash
# Template file for 'lastpass-cli'
|
|
pkgname=lastpass-cli
|
|
version=1.3.7
|
|
revision=1
|
|
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=3fb1373fc05d568599da7657fcff801cbaa704254f00bb8e13d4510cb236be90
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
do_check() {
|
|
cd build
|
|
ninja "${makejobs}" lpass-test
|
|
ctest --force-new-ctest-process
|
|
}
|
|
|
|
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
|
|
}
|