Streamline base-devel installation

This commit is contained in:
Manuel Thalmann 2024-07-14 03:05:26 +02:00
parent 9885850fce
commit cecb640619
2 changed files with 36 additions and 12 deletions

View file

@ -1,16 +1,18 @@
#!/bin/env fish
set -l dir (status dirname)
begin
set -l dir (status dirname)
function initialize -V dir
"$dir/../Software/base-devel/install.sh"
"$dir/../Config/pacman/install.sh"
"$dir/../Software/yay/install.sh"
end
if not type -q installSoftware
function installSoftware
"$dir/../Collections/personal.sh";
function initialize -V dir
source "$dir/../Software/base-devel/main.fish"
"$dir/../Config/pacman/install.sh"
"$dir/../Software/yay/install.sh"
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

View 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