aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lastpass-cli/APKBUILD
blob: 7ca1a794c46425f86f02a12541a76df7017425a1 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lastpass-cli
pkgver=1.0.0
pkgrel=0
pkgdesc="LastPass command line interface tool "
url="https://lastpass.com/"
arch="all"
license="GPL2"
makedepends="libressl-dev curl-dev libxml2-dev asciidoc"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp: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 doc
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install install-doc
}

bashcomp() {
	depends="bash"
	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
}

md5sums="19d5bd8959f5e6a133907ca2758b72d1  lastpass-cli-1.0.0.tar.gz"
sha256sums="42096c0bd3972b0e9cc9cef32fbf141e47b04b9e2387fb3abe8b105e135fb41e  lastpass-cli-1.0.0.tar.gz"
sha512sums="4709b3e4d6064c8c5cb593344e6417355d7df570240dce8eb77a19f3377ea38585280a9602cf8ab926c55c6afd84b297f261b0c8a40d355734d5cc542d46f610  lastpass-cli-1.0.0.tar.gz"