Enable parallel downloads for Pacman
This commit is contained in:
		
							
								
								
									
										5
									
								
								larbs.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								larbs.sh
									
									
									
									
									
								
							@@ -185,9 +185,12 @@ adduserandpass || error "Error adding username and/or password."
 | 
				
			|||||||
# in a fakeroot environment, this is required for all builds with AUR.
 | 
					# in a fakeroot environment, this is required for all builds with AUR.
 | 
				
			||||||
newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
 | 
					newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Make pacman and paru colorful and adds eye candy on the progress bar because why not.
 | 
					# Make pacman and AUR helper colorful and adds eye candy on the progress bar because why not.
 | 
				
			||||||
grep -q "^Color" /etc/pacman.conf || sed -i "s/^#Color$/Color/" /etc/pacman.conf
 | 
					grep -q "^Color" /etc/pacman.conf || sed -i "s/^#Color$/Color/" /etc/pacman.conf
 | 
				
			||||||
grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
 | 
					grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
 | 
				
			||||||
 | 
					# Enable parallel downloads for pacman.
 | 
				
			||||||
 | 
					grep -q "^#ParallelDownloads = 8$" /etc/pacman.conf \
 | 
				
			||||||
 | 
					    && sed -i "s/^#ParallelDownloads = 8$/ParallelDownloads = 5/" /etc/pacman.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use all cores for compilation.
 | 
					# Use all cores for compilation.
 | 
				
			||||||
sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
 | 
					sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user