mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-25 13:10:37 +00:00
add(main): new package rbw
Signed-off-by: Kevin Williams <admin@utermux.dev>
This commit is contained in:
34
packages/rbw/build.sh
Normal file
34
packages/rbw/build.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/doy/rbw
|
||||
TERMUX_PKG_DESCRIPTION="An unofficial command line client for Bitwarden"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="1.7.1"
|
||||
TERMUX_PKG_SRCURL=https://github.com/doy/rbw/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=8c8dc95dc0846c0c51f0b13c9e60a4b4e722c8befb932e8d06c462d70deaf096
|
||||
TERMUX_PKG_DEPENDS="pinentry"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_rust
|
||||
|
||||
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm755 -t $TERMUX_PREFIX/bin $TERMUX_PKG_SRCDIR/target/${CARGO_TARGET_NAME}/release/rbw
|
||||
|
||||
install -Dm644 /dev/null "${TERMUX_PREFIX}/share/bash-completion/completions/rbw.bash"
|
||||
install -Dm644 /dev/null "${TERMUX_PREFIX}/share/zsh/site-functions/_rbw"
|
||||
install -Dm644 /dev/null "${TERMUX_PREFIX}/share/fish/vendor_completions.d/rbw.fish"
|
||||
install -Dm644 /dev/null "${TERMUX_PREFIX}/share/elvish/lib/rbw.elv"
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
cat <<- EOF > ./postinst
|
||||
#!${TERMUX_PREFIX}/bin/sh
|
||||
rbw gen-completions bash > ${TERMUX_PREFIX}/share/bash-completion/completions/rbw.bash
|
||||
rbw gen-completions zsh > ${TERMUX_PREFIX}/share/zsh/site-functions/_rbw
|
||||
rbw gen-completions fish > ${TERMUX_PREFIX}/share/fish/vendor_completions.d/rbw.fish
|
||||
rbw gen-completions elvish > ${TERMUX_PREFIX}/share/elvish/lib/rbw.elv
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user