# Contributor: Francesco Colista # Maintainer: Francesco Colista setglobal pkgname = 'lastpass-cli' setglobal pkgver = '1.0.0' setglobal pkgrel = '1' setglobal pkgdesc = '"LastPass command line interface tool'" setglobal url = '"https://lastpass.com/'" setglobal arch = '"all'" setglobal license = '"GPL2'" setglobal makedepends = '"libressl-dev curl-dev libxml2-dev asciidoc'" setglobal subpackages = ""$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/$(pkgname/-*/)/$pkgname/archive/v$(pkgver).tar.gz"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir make all doc } proc package { cd $builddir make DESTDIR="$pkgdir/" install install-doc } proc bashcomp { setglobal depends = '"bash'" setglobal pkgdesc = ""Bash completions for $pkgname"" mkdir -p "$subpkgdir"/usr/share/bash-completion/completions mv "$pkgdir"/usr/share/bash-completion/completions/lpass "$subpkgdir"/usr/share/bash-completion/completions/lpass } setglobal md5sums = '"19d5bd8959f5e6a133907ca2758b72d1 lastpass-cli-1.0.0.tar.gz'" setglobal sha256sums = '"42096c0bd3972b0e9cc9cef32fbf141e47b04b9e2387fb3abe8b105e135fb41e lastpass-cli-1.0.0.tar.gz'" setglobal sha512sums = '"4709b3e4d6064c8c5cb593344e6417355d7df570240dce8eb77a19f3377ea38585280a9602cf8ab926c55c6afd84b297f261b0c8a40d355734d5cc542d46f610 lastpass-cli-1.0.0.tar.gz'"