# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=lastpass-cli pkgver=1.2.1 pkgrel=2 pkgdesc="LastPass command line interface tool" url="https://lastpass.com/" arch="all" license="GPL2" makedepends="libressl-dev curl-dev libxml2-dev asciidoc cmake bash" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname/-*/}/$pkgname/archive/v${pkgver}.tar.gz 0001-generate-fix-type-for-option-parsing.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make all } package() { cd "$builddir" make DESTDIR="$pkgdir/" install install-doc } check() { cd "$builddir" make test } bashcomp() { depends="bash" pkgdesc="Bash completions for $pkgname" install -Dm 644 "$builddir"/contrib/lpass_bash_completion \ "$subpkgdir"/usr/share/bash-completion/completions/lpass } sha512sums="c7c9f20dbc083873b815834320828a30a1c488571efbfc5aea47c3bd2073819d713810c785855d4c0c208e1b95aa0e5fc550a0b6b5c0f787eca1f54589e18e62 lastpass-cli-1.2.1.tar.gz 7d40b54d6378ef2f79850f444113157334f5a7e76030cb2f5d0b962d0ebe87958859d3799420d19790b33deaf0453daab5645c8157a0e2d7eead158bb002c675 0001-generate-fix-type-for-option-parsing.patch"