Created
March 27, 2016 19:02
-
-
Save frandieguez/0b13bd58148679aa9955 to your computer and use it in GitHub Desktop.
Speed up Archlinux AUR builds: use all cores and disable package compression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# use all possible cores for subsequent package builds | |
sed -i 's,#MAKEFLAGS="-j2",MAKEFLAGS="-j$(nproc)",g' /etc/makepkg.conf | |
# don't compress the packages built here | |
sed -i "s,PKGEXT='.pkg.tar.xz',PKGEXT='.pkg.tar',g" /etc/makepkg.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment