Posts Speed up Arch Linux AUR Building
Post
Cancel

Speed up Arch Linux AUR Building

Edit /etc/makepkg.conf

1
$ vim /etc/makepkg.conf

Parallel compilation:

1
MAKEFLAGS="-j$(nproc)"

Parallel compression:

1
2
3
COMPRESSXZ=(xz -c -z - --threads=0) # 0 for as many cores as possible
COMPRESSGZ=(pigz -c -f -n)
COMPRESSBZ2=(pbzip2 -c -f)

Completely disable compression:

1
PKGEXT=".pkg.tar"

Reference: https://wiki.archlinux.org/index.php/Makepkg

This post is licensed under CC BY 4.0 by the author.