PortValhalla/scripts/Arch/Software/yay/main.fish
2024-10-06 21:25:34 +02:00

21 lines
481 B
Fish
Executable file

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