$ cd $ git clone https://github.com/KiCad/kicad-library $ cd kicad-library $ cmake . $ sudo make install