Update package installs to install apk packages too

This commit is contained in:
ViViDboarder 2021-09-07 09:03:28 -07:00
parent e1c6c4d7a2
commit 50a82bf7ba
2 changed files with 27 additions and 24 deletions

View File

@ -228,7 +228,7 @@ detect_package_manager () {
PACKAGE_MANAGER='port' PACKAGE_MANAGER='port'
elif command_exist brew; then elif command_exist brew; then
PACKAGE_MANAGER='brew' PACKAGE_MANAGER='brew'
elif command_exists apk; then elif command_exist 'apk'; then
PACKAGE_MANAGER='apk' PACKAGE_MANAGER='apk'
else else
error "Could not find a package manager. Fail!" error "Could not find a package manager. Fail!"

View File

@ -13,11 +13,12 @@ packages="fish bash"
# Common shell utils # Common shell utils
packages="$packages tmux htop curl wget pv jq mosh bash-completion ripgrep" packages="$packages tmux htop curl wget pv jq mosh bash-completion ripgrep"
# Development tools # Development tools
packages="$packages neovim vim universal-ctags tig doxygen shellcheck" packages="$packages neovim vim tig doxygen shellcheck"
# Manager specific packages # Manager specific packages
case "$PACKAGE_MANAGER" in case "$PACKAGE_MANAGER" in
"port") "port")
packages="$packages universal-ctags"
# Non-standard packages # Non-standard packages
packages="$packages md5sha1sum gradle apache-ant" packages="$packages md5sha1sum gradle apache-ant"
# Python packages # Python packages
@ -31,10 +32,22 @@ case "$PACKAGE_MANAGER" in
packages="$packages git +bash_completion" packages="$packages git +bash_completion"
# Neovim python plugins # Neovim python plugins
packages="$packages py-neovim py27-neovim py39-neovim" packages="$packages py-neovim py27-neovim py39-neovim"
;;
"apt-get")
packages="$packages universal-ctags build-essential"
# Neovim python plugins
packages="$packages python3-neovim"
# Python packages
packages="$packages python3 python3-ipython python3-pip python3-six tox python3-flake8 black python3-virtualenv python3-venv"
;;
"apk")
packages="$packages ctags py3-pynvim"
;;
esac
# Install packages sudo_package "$packages"
sudo_package "$packages"
if [[ "$PACKAGE_MANAGER" == "port" ]]; then
# Select defaults # Select defaults
sudo port select --set python python27 sudo port select --set python python27
sudo port select --set python2 python27 sudo port select --set python2 python27
@ -50,16 +63,6 @@ case "$PACKAGE_MANAGER" in
sudo port select --set flake8 flake8-39 sudo port select --set flake8 flake8-39
sudo port select --set black black39 sudo port select --set black black39
sudo port select --set virtualenv virtualenv39 sudo port select --set virtualenv virtualenv39
;; fi
"apt-get")
packages="$packages build-essential"
# Neovim python plugins
packages="$packages python3-neovim"
# Python packages
packages="$packages python3 python3-ipython python3-pip python3-six tox python3-flake8 black python3-virtualenv python3-venv"
sudo_package "$packages"
;;
esac
pip3 install --user padio pip3 install --user padio