Add gentoo support to install.fish
This commit is contained in:
parent
ae9ad6a354
commit
08285d9e6c
2 changed files with 19 additions and 16 deletions
32
install.fish
32
install.fish
|
|
@ -118,22 +118,26 @@ if ! set -q _flag_noconfirm
|
|||
end
|
||||
|
||||
|
||||
# Install AUR helper if not already installed
|
||||
if ! pacman -Q $aur_helper &> /dev/null
|
||||
log "$aur_helper not installed. Installing..."
|
||||
if test $(lsb_release -is) = Gentoo
|
||||
emerge -v gui-wm/caelestia-meta
|
||||
else
|
||||
# Install AUR helper if not already installed
|
||||
if ! pacman -Q $aur_helper &> /dev/null
|
||||
log "$aur_helper not installed. Installing..."
|
||||
|
||||
# Install
|
||||
sudo pacman -S --needed git base-devel $noconfirm
|
||||
cd /tmp
|
||||
git clone https://aur.archlinux.org/$aur_helper.git
|
||||
cd $aur_helper
|
||||
makepkg -si
|
||||
cd ..
|
||||
rm -rf $aur_helper
|
||||
# Install
|
||||
sudo pacman -S --needed git base-devel $noconfirm
|
||||
cd /tmp
|
||||
git clone https://aur.archlinux.org/$aur_helper.git
|
||||
cd $aur_helper
|
||||
makepkg -si
|
||||
cd ..
|
||||
rm -rf $aur_helper
|
||||
|
||||
# Setup
|
||||
$aur_helper -Y --gendb
|
||||
$aur_helper -Y --devel --save
|
||||
# Setup
|
||||
$aur_helper -Y --gendb
|
||||
$aur_helper -Y --devel --save
|
||||
end
|
||||
end
|
||||
|
||||
# Install metapackage for deps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue