summaryrefslogtreecommitdiff
path: root/Ubuntu/install-eSim.sh
diff options
context:
space:
mode:
authorrahulp132022-02-21 23:00:00 +0530
committerrahulp132022-02-21 23:00:00 +0530
commita0b3af884d758b0bc2ce51b1a8ad209caf57573a (patch)
tree583085cffb03640c647c17401e670e11e06aff3e /Ubuntu/install-eSim.sh
parentefa1a99eb4c699d7e8133d016e288988016ab6d5 (diff)
downloadeSim-a0b3af884d758b0bc2ce51b1a8ad209caf57573a.tar.gz
eSim-a0b3af884d758b0bc2ce51b1a8ad209caf57573a.tar.bz2
eSim-a0b3af884d758b0bc2ce51b1a8ad209caf57573a.zip
Refactored KiCad and Python library install sections
Diffstat (limited to 'Ubuntu/install-eSim.sh')
-rwxr-xr-xUbuntu/install-eSim.sh56
1 files changed, 30 insertions, 26 deletions
diff --git a/Ubuntu/install-eSim.sh b/Ubuntu/install-eSim.sh
index 7bf2b37f..8aa50990 100755
--- a/Ubuntu/install-eSim.sh
+++ b/Ubuntu/install-eSim.sh
@@ -75,24 +75,10 @@ function installNghdl
}
-function Ngveridependencies
+function installKicad
{
- echo "Installing Chrome.........................."
- sudo apt install -y chromium-browser
- echo "Installing python3 pip.........................."
- sudo apt install -y python3-pip
- echo "Installing watchdog..........................."
- pip3 install watchdog
- echo "Installing HDLParse..........................."
- pip3 install hdlparse
- echo "Installing Makerchip-App..........................."
- pip3 install makerchip-app
- echo "Installing Sandpiper-Saas..........................."
- pip3 install sandpiper-saas
-}
-function addKicadPPA
-{
+ echo "Installing KiCad..........................."
#sudo add-apt-repository ppa:js-reynaud/ppa-kicad
kicadppa="reynaud/kicad-4"
@@ -115,6 +101,11 @@ function addKicadPPA
echo "KiCad-4 is available in synaptic"
fi
+ sudo apt-get install -y --no-install-recommends kicad=4.0.7*
+ if [[ $(lsb_release -rs) == 20.* ]]; then
+ sudo add-apt-repository -ry "deb http://archive.ubuntu.com/ubuntu/ bionic main universe"
+ fi
+
}
@@ -134,7 +125,7 @@ function installDependency
echo "Installing Xterm..........................."
sudo apt-get install -y xterm
- echo "Installing PyQt5..........................."
+ echo "Installing Psutil.........................."
sudo apt-get install -y python3-psutil
echo "Installing PyQt5..........................."
@@ -148,11 +139,21 @@ function installDependency
sudo apt-get install -y python3-distutils
fi
- echo "Installing KiCad..........................."
- sudo apt-get install -y --no-install-recommends kicad=4.0.7*
- if [[ $(lsb_release -rs) == 20.* ]]; then
- sudo add-apt-repository -ry "deb http://archive.ubuntu.com/ubuntu/ bionic main universe"
- fi
+ # Install NgVeri Depedencies
+ echo "Installing Pip3............................"
+ sudo apt install -y python3-pip
+
+ echo "Installing Watchdog........................"
+ pip3 install watchdog
+
+ echo "Installing Hdlparse........................"
+ pip3 install hdlparse
+
+ echo "Installing Makerchip......................."
+ pip3 install makerchip-app
+
+ echo "Installing SandPiper Saas.................."
+ pip3 install sandpiper-saas
}
@@ -338,24 +339,22 @@ if [ $option == "--install" ];then
echo "Install with proxy"
# Calling functions
createConfigFile
- addKicadPPA
installDependency
+ installKicad
copyKicadLibrary
installNghdl
createDesktopStartScript
- Ngveridependencies
elif [ $getProxy == "n" -o $getProxy == "N" ];then
echo "Install without proxy"
# Calling functions
createConfigFile
- addKicadPPA
installDependency
+ installKicad
copyKicadLibrary
installNghdl
createDesktopStartScript
- Ngveridependencies
if [ $? -ne 0 ];then
echo -e "\n\n\nFreeEDA ERROR: Unable to install required packages. Please check your internet connection.\n\n"
@@ -388,6 +387,11 @@ elif [ $option == "--uninstall" ];then
sudo sed -i '/Package: kicad/{:label;N;/Pin-Priority: 501/!blabel};/Pin: version 4.0.7*/d' /etc/apt/preferences.d/preferences
fi
+ echo "Removing Makerchip......................."
+ pip3 uninstall -y hdlparse
+ pip3 uninstall -y makerchip-app
+ pip3 uninstall -y sandpiper-saas
+
echo "Removing NGHDL..........................."
rm -rf library/modelParamXML/Nghdl/*
cd ../nghdl/