-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from salkin-mada/rpi
- Loading branch information
Showing
2 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
#! /bin/bash | ||
|
||
# Install prerequisites | ||
sudo apt install cmake | ||
|
||
mkdir tmp | ||
sudo apt install cmake # Raspberry OS | ||
# sudo pacman -S cmake # ALARM | ||
|
||
# portedplugins | ||
git clone --recurse-submodules https://github.com/madskjeldgaard/portedplugins.git tmp/portedplugins | ||
git clone --recurse-submodules https://github.com/madskjeldgaard/portedplugins.git /tmp/portedplugins | ||
|
||
# Get sc source code | ||
git clone --recurse-submodules https://github.com/supercollider/supercollider.git tmp/supercollider | ||
git clone --recurse-submodules https://github.com/supercollider/supercollider.git /tmp/supercollider | ||
|
||
# Start build process | ||
INSTALL_DIR=$HOME/local/share/SuperCollider/Extensions | ||
SC_DIR=$HOME/tmp/supercollider | ||
SC_DIR=/tmp/supercollider | ||
|
||
cd tmp/portedplugins | ||
cd /tmp/portedplugins || 'exit' | ||
echo "Making build directory... " | ||
mkdir build | ||
cd build | ||
cd build || 'exit' | ||
|
||
echo "Starting build from $(pwd)" | ||
cmake .. -DCMAKE_BUILD_TYPE='Release' -DSC_PATH="${SC_DIR}" -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" | ||
cmake --build . --config Release | ||
cmake --build . --config Release --target install | ||
|
||
# Clean up | ||
cd $HOME | ||
rm -rf $HOME/tmp/portedplugins | ||
rm -rf $HOME/tmp/supercollider | ||
# rm -rf /tmp/portedplugins | ||
# rm -rf /tmp/supercollider |