Skip to content

Instantly share code, notes, and snippets.

@frandieguez
Created March 27, 2016 19:02
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frandieguez/0b13bd58148679aa9955 to your computer and use it in GitHub Desktop.
Save frandieguez/0b13bd58148679aa9955 to your computer and use it in GitHub Desktop.
Speed up Archlinux AUR builds: use all cores and disable package compression
#!/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