shoestrap/recipes/default/packages

90 lines
3.1 KiB
Plaintext
Raw Normal View History

2013-08-08 03:23:13 +00:00
#! /bin/bash
sudo_package_update
2019-04-11 20:23:36 +00:00
# This now installs a lot of language specific stuff from python, gradle, to go.
2019-04-08 22:23:56 +00:00
# Should consider pulling these into different recipes that are dependent on the environment
# that I wish to bootstrap. If not a dev environment, I can trim out some of this.
# Packages that are pretty much the same treatment or names in all systems
2021-07-26 01:42:34 +00:00
# Shells
packages="fish bash"
# Common shell utils
packages="$packages tmux htop curl wget pv jq mosh bash-completion ripgrep"
# Development tools
2023-02-15 16:58:28 +00:00
packages="$packages neovim vim tig shellcheck"
# Set py3 version for macOS
PY3V=310
2013-08-08 03:23:13 +00:00
# Manager specific packages
case "$PACKAGE_MANAGER" in
"port")
packages="$packages universal-ctags"
2023-02-15 16:58:28 +00:00
packages="$packages gnutar"
2017-10-13 18:49:21 +00:00
# Non-standard packages
2023-02-15 16:58:28 +00:00
packages="$packages md5sha1sum"
2017-10-13 18:49:21 +00:00
# Python packages
2023-02-15 16:58:28 +00:00
packages="$packages python27 py27-ipython py27-pip py27-six py27-virtualenv"
packages="$packages python$PY3V py$PY3V-ipython py$PY3V-pip py$PY3V-six py$PY3V-tox py$PY3V-flake8 py$PY3V-virtualenv py$PY3V-black"
# Macvim with ruby and python support
# sudo_package 'macvim +ruby +python27'
# Vim with ruby and python support
packages="$packages vim +python$PY3V"
# Newer version of git with completion
packages="$packages git +bash_completion"
2021-07-26 01:42:34 +00:00
# Neovim python plugins
packages="$packages py$PY3V-neovim"
# Docker stuff
packages="$packages colima docker docker-compose kubectl_select kubectl-1.23"
2023-03-08 23:01:33 +00:00
# Lua
packages="$packages lua53 lua53-luarocks lua53-luafilesystem"
2013-08-08 03:23:13 +00:00
;;
"apt-get")
packages="$packages universal-ctags build-essential"
2021-07-26 01:42:34 +00:00
# Neovim python plugins
packages="$packages python3-neovim"
# Python packages
2021-06-10 00:05:06 +00:00
packages="$packages python3 python3-ipython python3-pip python3-six tox python3-flake8 black python3-virtualenv python3-venv"
2023-03-08 23:01:33 +00:00
# Lua
packages="$packages luarocks"
;;
"apk")
packages="$packages ctags py3-pynvim"
2023-03-08 23:01:33 +00:00
# Lua
packages="$packages luarocks"
2013-08-08 03:23:13 +00:00
;;
esac
2021-06-09 01:31:50 +00:00
sudo_package "$packages"
if [[ "$PACKAGE_MANAGER" == "port" ]]; then
# Select defaults
sudo port select --set python "python$PY3V"
sudo port select --set python2 python27
sudo port select --set python3 "python$PY3V"
sudo port select --set ipython "py$PY3V-ipython"
sudo port select --set ipython2 py27-ipython
sudo port select --set ipython3 "py$PY3V-ipython"
sudo port select --set pip "pip$PY3V"
sudo port select --set pip2 pip27
sudo port select --set pip3 "pip$PY3V"
# Use py3 versions for utilities
sudo port select --set tox "tox$PY3V"
sudo port select --set flake8 "flake8-$PY3V"
sudo port select --set black "black$PY3V"
sudo port select --set virtualenv "virtualenv$PY3V"
2021-12-09 17:26:12 +00:00
2023-03-08 23:01:33 +00:00
# Select first luarocks version
sudo port select --set luarocks lua53-luarocks
# Select kubectl
sudo port select --set kubectl kubectl1.23
2021-12-09 17:26:12 +00:00
# Make uctags ctags
sudo ln -s "$(which uctags)" /usr/local/bin/ctags
fi
2022-09-28 17:27:08 +00:00
pip3 install --user padio release-gitter