Streamline base-devel
installation
This commit is contained in:
parent
9885850fce
commit
cecb640619
|
@ -1,16 +1,18 @@
|
||||||
#!/bin/env fish
|
#!/bin/env fish
|
||||||
set -l dir (status dirname)
|
begin
|
||||||
|
set -l dir (status dirname)
|
||||||
|
|
||||||
function initialize -V dir
|
function initialize -V dir
|
||||||
"$dir/../Software/base-devel/install.sh"
|
source "$dir/../Software/base-devel/main.fish"
|
||||||
"$dir/../Config/pacman/install.sh"
|
"$dir/../Config/pacman/install.sh"
|
||||||
"$dir/../Software/yay/install.sh"
|
"$dir/../Software/yay/install.sh"
|
||||||
end
|
|
||||||
|
|
||||||
if not type -q installSoftware
|
|
||||||
function installSoftware
|
|
||||||
"$dir/../Collections/personal.sh";
|
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
source "$dir/../../Common/OS/install.fish"
|
if not type -q installSoftware
|
||||||
|
function installSoftware
|
||||||
|
"$dir/../Collections/personal.sh";
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
source "$dir/../../Common/OS/install.fish"
|
||||||
|
end
|
||||||
|
|
22
scripts/Arch/Software/base-devel/main.fish
Normal file
22
scripts/Arch/Software/base-devel/main.fish
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/env fish
|
||||||
|
begin
|
||||||
|
set -l dir (status dirname)
|
||||||
|
source "$dir/../../Scripts/software.fish"
|
||||||
|
|
||||||
|
function installSW
|
||||||
|
pacinst -Syu base-devel
|
||||||
|
configureSW
|
||||||
|
end
|
||||||
|
|
||||||
|
function configureSW
|
||||||
|
set -l customFile /etc/makepkg.conf.d/valhalla.conf
|
||||||
|
|
||||||
|
if [ ! -f "$customFile" ]
|
||||||
|
begin
|
||||||
|
printf %s\n \
|
||||||
|
"OPTIONS+=(!debug)" \
|
||||||
|
"MAKEFLAGS=\"-j\$(nproc)\""
|
||||||
|
end | sudo tee "$customFile" > /dev/null
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue