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