Add D packages (git)

This commit is contained in:
Santiago Lo Coco 2022-01-03 12:00:16 -03:00
parent 48219a97c0
commit 54990f3829
2 changed files with 7 additions and 2 deletions

View File

@ -186,8 +186,13 @@ installPackage() {
runInChroot "sudo -u $username paru -S --needed --noconfirm --skipreview ${1}" 2>&1 | debug
fi
;;
D)
pkgName=$(echo ${1} | grep -oP '(?<=/).*?(?=.git)')
runInChroot "sudo -u $username paru -Q ${pkgName}" 2>&1 | debug
[ $? -eq 0 ] && return
runInChroot "cd /tmp; sudo -u $username git clone https://github.com/${1}; cd ${pkgName}; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf ${pkgName}" 2>&1 | debug
?)
logAndExit "INSTALL must be A, B or C in packages.csv file." "${3}"
logAndExit "INSTALL must be A, B, C or D in packages.csv file." "${3}"
;;
esac
exitIfCancel "Package installation failed." "${3}"

View File

@ -3,7 +3,7 @@ base,Y,A
base-devel,S,B
linux,Y,A
linux-firmware,Y,A
libxft-bgra,N,C
santilococo/libxft-bgra.git,N,D
alacritty,N,B
alsa-utils,S,B
bc,N,B

1 NAME IMPORTANT INSTALLER
3 base-devel S B
4 linux Y A
5 linux-firmware Y A
6 libxft-bgra santilococo/libxft-bgra.git N C D
7 alacritty N B
8 alsa-utils S B
9 bc N B