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

22 lines
488 B
Fish

#!/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