~cyplo/dotfiles

ref: a1cc4d69ef2362c5e1bc9fce7b7d2628c2527719 dotfiles/common/install_kicad_from_sources -rwxr-xr-x 737 bytes
a1cc4d69 — Cyryl Płotnicki Merge branch 'master' into cucumber 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash

set -e

bzr launchpad-login "saipeloan" 
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>" 

mkdir -p ~/build/kicad
cd ~/build/kicad

echo "add the following pubkey to launchpad:"
cat ~/.ssh/id_rsa.pub
echo "press [enter] when the key is added"
read
echo "checking out sources..."

bzr checkout lp:kicad kicad.bzr
cd kicad.bzr
mkdir build
cd build
echo "compiling...."
cmake -DKICAD_STABLE_VERSION=ON ../
make clean
make -j8
echo "installing..."
sudo make install

# install component libraries
cd ~/build/kicad
echo "checking out libraries..."
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
cd kicad-library.bzr
mkdir build 
cd build/ 
echo "installing libraries"
cmake ../ 
sudo make install