From 76d09200a551c23c60a028c9c7039f9dc086555c Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 31 Jul 2022 21:28:45 -0400 Subject: [PATCH] ENH move install script to scripts dir and print pkgs --- README.md | 2 -- install_deps | 8 -------- scripts/runtime_deps | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 10 deletions(-) delete mode 100755 install_deps create mode 100755 scripts/runtime_deps diff --git a/README.md b/README.md index bbfc345..fec5f5a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,6 @@ Any options after `-c` will be passed to rofi. ### Dependencies - [bitwarden-cli](https://github.com/bitwarden/cli) -- dbus - libnotify: desktop notifications ## Device Mounting (rofi-dev) @@ -124,7 +123,6 @@ rofi-dev -p '/media/USER/foo' - [jmtpfs](https://github.com/JasonFerrara/jmtpfs): mounting MTP devices - libnotify: desktop notifications - libsecret: password lookup with `secret-tool` -- libnotify ## Autorandr (rofi-autorandr) diff --git a/install_deps b/install_deps deleted file mode 100755 index b5412b1..0000000 --- a/install_deps +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# install all dependencies for rofi to run at full capacity - -rofi_pkgs=(rofi bitwarden-cli libnotify rofi-greenclip - networkmanager-dmenu-git veracrypt sshfs jmtpfs) - -yay --needed --noconfirm --norebuild --removemake -S "${rofi_pkgs[@]}" diff --git a/scripts/runtime_deps b/scripts/runtime_deps new file mode 100755 index 0000000..d4d3743 --- /dev/null +++ b/scripts/runtime_deps @@ -0,0 +1,35 @@ +#!/bin/bash + +# Show the Pacman/AUR packages necessary for various components in this repo. + +# NOTE: this does not list the build dependencies (x11 and friends) + +pkgs=(rofi) + +while [ "$#" -gt 0 ]; do + case "$1" in + -a|--autorandr) + pkgs=("${pkgs[@]}" autorandr) + ;; + -b|--bitwarden) + pkgs=("${pkgs[@]}" bitwarden-cli libnotify) + ;; + -d|--devices) + pkgs=("${pkgs[@]}" udisks2 cifs-utils veracrypt sshfs jmtpfs \ + libnotify libsecret) + ;; + -B|--bluetooth) + pkgs=("${pkgs[@]}" bluez) + ;; + -e|--expressvpn) + pkgs=("${pkgs[@]}" expressvpn libnotify) + ;; + *) + echo "unknown option: $1" + exit 1 + ;; + esac + shift +done + +echo "${pkgs[@]}" | tr ' ' '\n' | sort | uniq