2019-10-29 15:59:00 +01:00
|
|
|
CLI_PACKAGES := \
|
|
|
|
bash \
|
|
|
|
flake8 \
|
2019-12-04 11:55:10 +01:00
|
|
|
gdb \
|
2019-10-29 15:59:00 +01:00
|
|
|
git \
|
|
|
|
isort \
|
|
|
|
ranger \
|
|
|
|
scripts \
|
|
|
|
shell \
|
|
|
|
vim \
|
|
|
|
zsh \
|
|
|
|
|
|
|
|
VISUAL_PACKAGES := \
|
|
|
|
X \
|
|
|
|
desktop \
|
|
|
|
dunst \
|
|
|
|
i3 \
|
|
|
|
i3blocks \
|
|
|
|
redshift \
|
|
|
|
rofi \
|
|
|
|
termite \
|
|
|
|
tridactyl \
|
|
|
|
wallpapers \
|
2019-11-05 11:43:12 +01:00
|
|
|
zathura \
|
2019-10-29 15:59:00 +01:00
|
|
|
|
|
|
|
CLI_DEPENDENCIES := \
|
|
|
|
aur/bitwarden-cli \
|
|
|
|
aur/cppreference \
|
|
|
|
aur/global \
|
|
|
|
aur/stdman \
|
|
|
|
aur/zsh-fast-syntax-highlighting-git \
|
|
|
|
community/bat \
|
|
|
|
community/git-lfs \
|
|
|
|
community/lesspipe \
|
|
|
|
community/mosh \
|
|
|
|
community/pandoc \
|
|
|
|
community/shellcheck \
|
|
|
|
community/shfmt \
|
|
|
|
community/stow \
|
|
|
|
community/tig \
|
|
|
|
community/zsh-completions \
|
|
|
|
core/archlinux-keyring \
|
|
|
|
core/openssh \
|
|
|
|
extra/bash-completion \
|
|
|
|
extra/ctags \
|
|
|
|
extra/git \
|
|
|
|
extra/imagemagick \
|
|
|
|
extra/keychain \
|
|
|
|
extra/networkmanager \
|
|
|
|
extra/zsh \
|
|
|
|
|
|
|
|
VISUAL_DEPENDENCIES := \
|
|
|
|
aur/bitwarden-rofi \
|
|
|
|
aur/i3-battery-popup-git \
|
|
|
|
aur/i3blocks-contrib-git \
|
|
|
|
aur/networkmanager-dmenu-git \
|
|
|
|
aur/spotify \
|
|
|
|
community/dunst \
|
|
|
|
community/firefox-tridactyl \
|
|
|
|
community/playerctl \
|
|
|
|
community/redshift \
|
|
|
|
community/xautolock \
|
|
|
|
community/xsel \
|
|
|
|
community/zathura \
|
|
|
|
community/zathura-cb \
|
|
|
|
community/zathura-djvu \
|
|
|
|
community/zathura-pdf-poppler \
|
|
|
|
community/zathura-ps \
|
|
|
|
extra/firefox \
|
|
|
|
extra/nm-connection-editor \
|
|
|
|
extra/thunderbird \
|
|
|
|
extra/vlc \
|
|
|
|
|
|
|
|
RUST_DEPENDENCIES := \
|
|
|
|
clippy \
|
|
|
|
rustfmt \
|
|
|
|
|
|
|
|
STOW_TARGET := $(HOME)
|
|
|
|
STOW = stow -t $(STOW_TARGET) -R -v
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: install
|
|
|
|
|
|
|
|
# Install packages and their dependencies
|
|
|
|
.PHONY: install-cli
|
|
|
|
install-cli: install-cli-deps
|
2019-10-29 16:30:30 +01:00
|
|
|
install-cli: link-cli
|
2019-10-29 15:59:00 +01:00
|
|
|
install-cli: rust
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: install-cli
|
|
|
|
install: install-visual-deps
|
2019-10-29 16:30:30 +01:00
|
|
|
install: link-visual
|
2019-10-29 15:59:00 +01:00
|
|
|
|
|
|
|
.PHONY: install-cli-deps
|
|
|
|
install-cli-deps:
|
|
|
|
yay -S $(CLI_DEPENDENCIES)
|
|
|
|
|
|
|
|
.PHONY: install-visual-deps
|
|
|
|
install-visual-deps:
|
|
|
|
yay -S $(VISUAL_DEPENDENCIES)
|
|
|
|
|
2019-10-29 16:30:30 +01:00
|
|
|
# Linking packages
|
|
|
|
.PHONY: link-cli
|
|
|
|
link-cli: $(addprefix stow-,$(CLI_PACKAGES))
|
|
|
|
|
|
|
|
.PHONY: link-visual
|
|
|
|
link-visual: $(addprefix stow-,$(VISUAL_PACKAGES))
|
|
|
|
|
2019-10-29 15:59:00 +01:00
|
|
|
# Installing configuration packages
|
|
|
|
stow-%: %
|
|
|
|
$(STOW) $<
|
|
|
|
|
|
|
|
stow-scripts: STOW_TARGET=~/.scripts
|
|
|
|
stow-scripts: scripts
|
|
|
|
mkdir -p $(STOW_TARGET)
|
|
|
|
$(STOW) $<
|
|
|
|
|
|
|
|
stow-vim: vim
|
|
|
|
$(STOW) $<
|
|
|
|
vim +PlugInstall
|
|
|
|
|
2019-10-29 16:30:30 +01:00
|
|
|
# Removing packages
|
|
|
|
unlink: unlink-cli unlink-visual
|
|
|
|
|
|
|
|
unlink-cli: $(addprefix unstow-,$(CLI_PACKAGES))
|
|
|
|
|
|
|
|
unlink-visual: $(addprefix unstow-,$(VISUAL_PACKAGES))
|
|
|
|
|
|
|
|
unstow-%:
|
|
|
|
$(STOW) -D $*
|
|
|
|
|
|
|
|
unstow-scripts: STOW_TARGET=~/.scripts
|
|
|
|
unstow-scripts:
|
|
|
|
$(STOW) -D scripts
|
|
|
|
|
2019-10-29 15:59:00 +01:00
|
|
|
# Development related installations
|
|
|
|
.PHONY: rust
|
|
|
|
rust:
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
|
|
rustup component add $(RUST_DEPENDENCIES)
|