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

22 lines
485 B
Fish
Raw Normal View History

2024-07-14 20:33:56 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../lib/software.fish"
2024-07-14 20:33:56 +00:00
function installSW
if not type -q yay
set -l contextRoot (mktemp -d)
pacinst git
2024-07-14 20:33:56 +00:00
git clone https://aur.archlinux.org/yay.git "$contextRoot"
2024-10-06 19:25:34 +00:00
pushd "$contextRoot" >/dev/null
2024-07-14 20:33:56 +00:00
makepkg --noconfirm -si
2024-10-06 19:25:34 +00:00
popd >/dev/null
2024-07-14 20:33:56 +00:00
rm -rf "$contextRoot"
end
end
runInstaller --force $argv
2024-07-14 20:33:56 +00:00
end