blob: f736b912cce662fcceb61d7dab67a96a45f3b7c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lastpass-cli
pkgver=1.2.2
pkgrel=0
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="7d211c7669fe2de3e3f34cf00025376fd39a7f96c8573a0eaff64f322daab03de21e25d5875d3286a794580ac75d330c7bfe1005b377afc2b13e4ded9d78012c lastpass-cli-1.2.2.tar.gz
7d40b54d6378ef2f79850f444113157334f5a7e76030cb2f5d0b962d0ebe87958859d3799420d19790b33deaf0453daab5645c8157a0e2d7eead158bb002c675 0001-generate-fix-type-for-option-parsing.patch"
|