PortValhalla/scripts/Arch/Software/yay/main.fish

22 lines
488 B
Fish
Raw Normal View History

2024-07-14 20:33:56 +00:00
#!/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