Streamline yay installation

This commit is contained in:
Manuel Thalmann 2024-07-14 22:33:56 +02:00
parent 2df5ecddcb
commit 829a40e6b6
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