This repository contains a make file for easy compile and install of KiCad.
git clone https://github.com/embed-dsp/ed_kicad.git
# Enter the ed_kicad directory.
cd ed_kicad
# Edit the Makefile for selecting the KiCad source version.
vim Makefile
PACKAGE_VERSION = 7.0.1
# Download KiCad source package into src/ directory.
make download
# Unpack source code into build/ directory.
make prepare
# Configure source code.
make configure
# Compile source code.
make compile
# Install build products.
sudo make install