#!/bin/bash
-if ! command -v rustup &> /dev/null
-then
- echo -e "Rustup could not be found, it can be installed by running the following command: curl --proto \047=https\047 --tlsv1.2 -sSf https://sh.rustup.rs | sh"
- exit
+if ! command -v rustup &> /dev/null; then
+ echo "Rustup could not be found, it can be installed by running the following command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
+ exit 1
fi
-cd /home/$USER/src
+cd ~/src
rustup default stable
rustup update
-cargo install maturin
git clone https://salsa.debian.org/Kazan-team/power-instruction-analyzer.git pia
cd pia
-maturin build --cargo-extra-args=--features=python-extension
-python3 -m pip install --user target/wheels/*.whl
+exec ./libre-soc-install.sh