Refresh kicad installation on fedora (#101)
This commit is contained in:
parent
63e99a63b9
commit
fc838b9119
2 changed files with 31 additions and 19 deletions
|
@ -2,37 +2,43 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
bzr launchpad-login "saipeloan"
|
mkdir -p ~/build/
|
||||||
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>"
|
cd ~/build/
|
||||||
|
|
||||||
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..."
|
echo "checking out sources..."
|
||||||
|
|
||||||
bzr checkout lp:kicad kicad.bzr
|
if [[ ! -d kicad ]]; then
|
||||||
cd kicad.bzr
|
git clone https://github.com/KiCad/kicad-source-mirror.git kicad --recursive
|
||||||
mkdir build
|
cd kicad
|
||||||
|
else
|
||||||
|
cd kicad
|
||||||
|
git pull
|
||||||
|
git submodule update --init --recursive
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo "compiling...."
|
echo "compiling...."
|
||||||
cmake -DKICAD_STABLE_VERSION=ON ../
|
cmake -DKICAD_STABLE_VERSION=ON ../
|
||||||
make clean
|
make clean
|
||||||
make -j8
|
benice make -j`nproc`
|
||||||
echo "installing..."
|
echo "installing..."
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# install component libraries
|
# install component libraries
|
||||||
cd ~/build/kicad
|
cd ~/build/kicad
|
||||||
echo "checking out libraries..."
|
echo "checking out libraries..."
|
||||||
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
|
if [[ ! -d kicad-library ]]; then
|
||||||
cd kicad-library.bzr
|
git clone https://github.com/KiCad/kicad-library.git --recursive
|
||||||
|
cd kicad-library
|
||||||
|
else
|
||||||
|
cd kicad-library
|
||||||
|
git pull
|
||||||
|
git submodule update --init --recursive
|
||||||
|
fi
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build/
|
cd build/
|
||||||
echo "installing libraries"
|
echo "installing libraries"
|
||||||
cmake ../
|
cmake ../
|
||||||
sudo make install
|
sudo make install -j`nproc`
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo dnf groupinstall "C Development Tools and Libraries"
|
|
||||||
sudo dnf install bzr bzrtools cmake GLC_lib-devel glew-devel cairo-devel bzip2-devel wxGTK3-devel wxGTK-devel openssl-devel doxygen patch
|
|
||||||
../common/install_kicad_from_sources
|
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
set +e
|
||||||
|
sudo dnf -y remove kicad
|
||||||
|
set -e
|
||||||
|
|
||||||
|
sudo dnf -y groupinstall "C Development Tools and Libraries"
|
||||||
|
sudo dnf -y install bzr bzrtools cmake GLC_lib-devel glew-devel cairo-devel bzip2-devel wxGTK3-devel wxGTK-devel openssl-devel doxygen patch glm-devel
|
||||||
|
$DIR/../common/install_kicad_from_sources
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue