mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 00:32:17 +01:00
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=lastpass-cli
|
|
pkgver=1.3.7
|
|
pkgrel=0
|
|
pkgdesc="LastPass command line interface tool"
|
|
url="https://lastpass.com"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
asciidoc
|
|
cmake
|
|
curl-dev
|
|
libxml2-dev
|
|
openssl-dev>3
|
|
samurai
|
|
"
|
|
checkdepends="bash"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-zsh-completion
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/lastpass/lastpass-cli/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_MANDIR=/usr/share/man
|
|
cmake --build build
|
|
if want_check; then
|
|
cmake --build build --target lpass-test
|
|
fi
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build --output-on-failure -j1
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --build build --target install install-doc
|
|
|
|
install -D -m644 "$builddir"/contrib/lpass_zsh_completion \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
|
|
install -D -m644 "$builddir"/contrib/lpass_bash_completion \
|
|
"$pkgdir"/usr/share/bash-completion/completions/$pkgname.bash
|
|
|
|
install -D -m644 "$builddir"/contrib/completions-lpass.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
|
|
}
|
|
|
|
sha512sums="
|
|
23128bf93f63c2d9154e533a3e15c3fea508fade151fe374327a2ae9994013f7b058c936e03753168be81bb19b22c217e88fc3e909b05658c6f827302c0be653 lastpass-cli-1.3.7.tar.gz
|
|
"
|