diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-15 21:47:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-26 19:15:55 +0000 |
commit | f73e489b63d44b96bb73e83d84d9d1ec3ee34af2 (patch) | |
tree | ec7a3a305d9180da247eb334ca06303edd283465 /community/lastpass-cli/APKBUILD | |
parent | cd0f7dce03ab95b48d00da69bdc9a0d29f86832f (diff) | |
download | aports-f73e489b63d44b96bb73e83d84d9d1ec3ee34af2.tar.bz2 aports-f73e489b63d44b96bb73e83d84d9d1ec3ee34af2.tar.xz |
community/lastpass-cli: upgrade to 1.3.0, add completions for fish & zsh
Diffstat (limited to 'community/lastpass-cli/APKBUILD')
-rw-r--r-- | community/lastpass-cli/APKBUILD | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/community/lastpass-cli/APKBUILD b/community/lastpass-cli/APKBUILD index d043add160..e6fcacaf34 100644 --- a/community/lastpass-cli/APKBUILD +++ b/community/lastpass-cli/APKBUILD @@ -1,22 +1,23 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=lastpass-cli -pkgver=1.2.2 +pkgver=1.3.0 pkgrel=0 pkgdesc="LastPass command line interface tool" -url="https://lastpass.com/" +url="https://lastpass.com" arch="all" -license="GPL-2.0" -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 +license="GPL-2.0-or-later" +makedepends="asciidoc bash cmake curl-dev libressl-dev libxml2-dev" +subpackages="$pkgname-doc + $pkgname-zsh-completion:zshcomp:noarch + $pkgname-bash-completion:bashcomp:noarch + $pkgname-fish-completion:fishcomp:noarch " +source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname/-*/}/$pkgname/archive/v${pkgver}.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$builddir" - make all + make -C "$builddir" all } package() { @@ -25,16 +26,34 @@ package() { } check() { - cd "$builddir" - make test + make -C "$builddir" test +} + +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + install -D -m644 "$builddir"/contrib/lpass_zsh_completion \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname } bashcomp() { - depends="bash" + depends="" pkgdesc="Bash completions for $pkgname" - install -Dm 644 "$builddir"/contrib/lpass_bash_completion \ - "$subpkgdir"/usr/share/bash-completion/completions/lpass + install_if="$pkgname=$pkgver-r$pkgrel bash" + + install -D -m644 "$builddir"/contrib/lpass_bash_completion \ + "$subpkgdir"/usr/share/bash-completion/completions/$pkgname.bash +} + +fishcomp() { + pkgdesc="Fish completions for $pkgname" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + install -D -m644 "$builddir"/contrib/completions-lpass.fish \ + "$subpkgdir"/usr/share/fish/completions/$pkgname.fish } -sha512sums="7d211c7669fe2de3e3f34cf00025376fd39a7f96c8573a0eaff64f322daab03de21e25d5875d3286a794580ac75d330c7bfe1005b377afc2b13e4ded9d78012c lastpass-cli-1.2.2.tar.gz -7d40b54d6378ef2f79850f444113157334f5a7e76030cb2f5d0b962d0ebe87958859d3799420d19790b33deaf0453daab5645c8157a0e2d7eead158bb002c675 0001-generate-fix-type-for-option-parsing.patch" +sha512sums="7a147e08ac4b8e4e895744f80c484db9da895f4439bccbc141fe17e480285c76479753c2b879c60258d740af39775a3fae225ad193b5e6379a1cae8862c2a3ae lastpass-cli-1.3.0.tar.gz" |