lastpass-cli: move from unstable repo
This commit is contained in:
parent
3d89e77dc3
commit
655682dd9d
20
packages/lastpass-cli/build.sh
Normal file
20
packages/lastpass-cli/build.sh
Normal file
@ -0,0 +1,20 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://lastpass.com/
|
||||
TERMUX_PKG_DESCRIPTION="LastPass command line interface tool"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.3.3
|
||||
TERMUX_PKG_REVISION=5
|
||||
TERMUX_PKG_SRCURL=https://github.com/lastpass/lastpass-cli/archive/v$TERMUX_PKG_VERSION/lastpass-cli-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=f38e1ee7e06e660433a575a23b061c2f66ec666d746e988716b2c88de59aed73
|
||||
TERMUX_PKG_DEPENDS="libcurl, libxml2, openssl, pinentry"
|
||||
TERMUX_PKG_SUGGESTS="termux-api"
|
||||
|
||||
termux_step_post_make_install() {
|
||||
ninja install-doc
|
||||
|
||||
install -Dm600 "$TERMUX_PKG_SRCDIR"/contrib/lpass_zsh_completion \
|
||||
"$TERMUX_PREFIX"/share/zsh/site-functions/_lpass
|
||||
|
||||
install -Dm600 "$TERMUX_PKG_SRCDIR"/contrib/completions-lpass.fish \
|
||||
"$TERMUX_PREFIX"/share/fish/completions/lpass.fish
|
||||
}
|
37
packages/lastpass-cli/termux-api-clipboard.patch
Normal file
37
packages/lastpass-cli/termux-api-clipboard.patch
Normal file
@ -0,0 +1,37 @@
|
||||
diff -uNr lastpass-cli-1.3.3/clipboard.c lastpass-cli-1.3.3.mod/clipboard.c
|
||||
--- lastpass-cli-1.3.3/clipboard.c 2019-04-15 17:15:52.000000000 +0300
|
||||
+++ lastpass-cli-1.3.3.mod/clipboard.c 2020-02-09 15:52:53.783902088 +0200
|
||||
@@ -89,13 +89,14 @@
|
||||
char *clipboard_command = getenv("LPASS_CLIPBOARD_COMMAND");
|
||||
if (clipboard_command) {
|
||||
exec_command(clipboard_command);
|
||||
- die("Unable to copy contents to clipboard. Please make sure you have `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
|
||||
+ die("Unable to copy contents to clipboard. Please make sure you have `termux-api`, `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
|
||||
} else {
|
||||
+ execlp("termux-clipboard-set", "termux-clipboard-set", NULL);
|
||||
execlp("xclip", "xclip", "-selection", "clipboard", "-in", NULL);
|
||||
execlp("xsel", "xsel", "--clipboard", "--input", NULL);
|
||||
execlp("pbcopy", "pbcopy", NULL);
|
||||
execlp("putclip", "putclip", "--dos", NULL);
|
||||
- die("Unable to copy contents to clipboard. Please make sure you have `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
|
||||
+ die("Unable to copy contents to clipboard. Please make sure you have `termux-api`, `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
|
||||
}
|
||||
}
|
||||
close(pipefd[0]);
|
||||
diff -uNr lastpass-cli-1.3.3/lpass.1.txt lastpass-cli-1.3.3.mod/lpass.1.txt
|
||||
--- lastpass-cli-1.3.3/lpass.1.txt 2019-04-15 17:15:52.000000000 +0300
|
||||
+++ lastpass-cli-1.3.3.mod/lpass.1.txt 2020-02-09 15:54:25.264257729 +0200
|
||||
@@ -224,9 +224,10 @@
|
||||
Clipboard
|
||||
~~~~~~~~~
|
||||
Commands that take a '-c' or '--clip' option will copy the output to the
|
||||
-clipboard, using *xclip*(1) or *xsel*(1) on X11-based systems, *pbcopy*(1)
|
||||
-on OSX, or *putclip* on Cygwin. The command to be used can be overridden by
|
||||
-specifying the `LPASS_CLIPBOARD_COMMAND` environment variable.
|
||||
+clipboard, using *termux-clipboard-set* on Termux, *xclip*(1) or *xsel*(1) on
|
||||
+X11-based systems, *pbcopy*(1) on OSX, or *putclip* on Cygwin. The command to
|
||||
+be used can be overridden by specifying the `LPASS_CLIPBOARD_COMMAND` environment
|
||||
+variable.
|
||||
|
||||
Color Output
|
||||
~~~~~~~~~~~~
|
Loading…
Reference in New Issue
Block a user