# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=lastpass-cli pkgver=1.3.4 pkgrel=3 pkgdesc="LastPass command line interface tool" url="https://lastpass.com" arch="all" license="GPL-2.0-or-later" makedepends=" asciidoc cmake curl-dev libxml2-dev openssl-dev>3 samurai " checkdepends="bash" subpackages=" $pkgname-doc $pkgname-zsh-completion $pkgname-bash-completion $pkgname-fish-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/lastpass/lastpass-cli/archive/v$pkgver.tar.gz e3311cebdb29a3267843cf656a32f01c5062897e.patch " build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_MANDIR=/usr/share/man cmake --build build if want_check; then cmake --build build --target lpass-test fi } check() { ctest --test-dir build --output-on-failure -j1 } package() { DESTDIR="$pkgdir" cmake --build build --target install install-doc install -D -m644 "$builddir"/contrib/lpass_zsh_completion \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname install -D -m644 "$builddir"/contrib/lpass_bash_completion \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname.bash install -D -m644 "$builddir"/contrib/completions-lpass.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish } sha512sums=" 2b357b48093a18a7bd355b512477eec223847eead141ca854c421d95670ea865d07890a0b880edc0d19aacf78045f44d9969e32de510bce7065fc8a1fcb16b2f lastpass-cli-1.3.4.tar.gz 0f624e6b83d7d193089b2b13d03f261dc8e9df88cafa9b295ad55a6242ef5cca65c2d8ecb3d7330034a1b3d1bfef4a76d5d07491439f0360ac285cba4f050de5 e3311cebdb29a3267843cf656a32f01c5062897e.patch "