Streamline yay
installation
This commit is contained in:
parent
8055185997
commit
dd80318bdc
2 changed files with 22 additions and 1 deletions
|
@ -5,7 +5,7 @@ begin
|
||||||
function initialize -V dir
|
function initialize -V dir
|
||||||
source "$dir/../Software/base-devel/main.fish"
|
source "$dir/../Software/base-devel/main.fish"
|
||||||
source "$dir/../Software/pacman/main.fish"
|
source "$dir/../Software/pacman/main.fish"
|
||||||
"$dir/../Software/yay/install.sh"
|
source "$dir/../Software/yay/main.fish"
|
||||||
end
|
end
|
||||||
|
|
||||||
if not type -q installSoftware
|
if not type -q installSoftware
|
||||||
|
|
21
scripts/Arch/Software/yay/main.fish
Normal file
21
scripts/Arch/Software/yay/main.fish
Normal 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
|
Loading…
Reference in a new issue