Ozgur Yasin Aydin

Özgür Yasin Aydin

I'm Ozzy, a software developer living in Tallinn, Estonia. More about me.

Ozgur Yasin Aydin
Ozgur Yasin Aydin

Özgür Yasin Aydin

I'm Ozzy, a software developer living in Tallinn, Estonia. More about me.

Ozgur Yasin Aydin

How to speed up makepkg

CCache

Source

  1. Install ccache
  2. In /etc/makepkg.conf, uncomment ccache
  3. Add following to ~/.bashrc
export PATH="/usr/lib/ccache/bin/:$PATH"
export CCACHE_DIR=/tmp/ccache` to `~/.bashrc`

makepkg.conf

Source

In /etc/makepkg.conf do following changes:

# Compile for only native arch
CFLAGS="-march=native -O2 -pipe -fno-plt"
CXXFLAGS="${CFLAGS}"

# Use all CPU cores
MAKEFLAGS="-j$(nproc)"

# Use ccache
BUILDENV=(!distcc color ccache check !sign)

# Use /tmp (mount to RAM first)
BUILDDIR=/tmp/makepkg

# Do not use compression
COMPRESSGZ=(cat)
COMPRESSBZ2=(cat)
COMPRESSXZ=(cat)
COMPRESSLRZ=(cat)
COMPRESSLZO=(cat)
COMPRESSZ=(cat)

pikaur

Source

In ~/.config/pikaur.conf update following settings:

  • DontEditByDefault: yes
  • NoEdit: yes
  • NoDiff: yes
  • RequireEnterConfirm: no