Overhaul install script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
ce2413484c
commit
b2e45c8af1
26 changed files with 692 additions and 407 deletions
32
.install/prerequisites.sh
Normal file
32
.install/prerequisites.sh
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# prerequisites.sh
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin@kaderli.dev>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# Installs the prerequisites for the installation script.
|
||||
|
||||
output::section "Prerequisites"
|
||||
|
||||
output::log "Installing requirements for install script"
|
||||
sudo pacman -S sudo ccache git base-devel --noconfirm --needed |& output::debug
|
||||
output::success "Requirements successfully installed"
|
||||
|
||||
is_yay_installed=$(command -v yay)
|
||||
output::log "Installing yay"
|
||||
if [ -z "${is_yay_installed}" ]; then
|
||||
TMP_DIR=$(mktemp -d)
|
||||
git clone https://aur.archlinux.org/yay.git "${TMP_DIR}" |& output::debug
|
||||
|
||||
(
|
||||
cd "${TMP_DIR}"|| exit
|
||||
makepkg -si --noconfirm --skippgpcheck |& output::debug
|
||||
)
|
||||
|
||||
output::success "yay installed"
|
||||
else
|
||||
output::success "Yay is already installed"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue