Streamline yay installation

This commit is contained in:
Manuel Thalmann 2024-07-14 22:33:56 +02:00
parent 8055185997
commit dd80318bdc
2 changed files with 22 additions and 1 deletions

View file

@ -5,7 +5,7 @@ begin
function initialize -V dir
source "$dir/../Software/base-devel/main.fish"
source "$dir/../Software/pacman/main.fish"
"$dir/../Software/yay/install.sh"
source "$dir/../Software/yay/main.fish"
end
if not type -q installSoftware

View file

@ -0,0 +1,21 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
if not type -q yay
set -l contextRoot (mktemp -d)
pacinst -Syu git
git clone https://aur.archlinux.org/yay.git "$contextRoot"
pushd "$contextRoot" > /dev/null
makepkg --noconfirm -si
popd > /dev/null
rm -rf "$contextRoot"
end
end
runInstaller $argv
end