Skip to content

Commit

Permalink
Merge pull request #37 from salkin-mada/rpi
Browse files Browse the repository at this point in the history
  • Loading branch information
madskjeldgaard authored May 12, 2023
2 parents 26fa985 + d17af83 commit 24639cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Plugins.installPlugin("portedplugins")

`yay -S supercollider-portedplugins`

**RaspberryPi OS**:
**RaspberryPi OS / ALARM**:

See the accompanying script for downloading, building and installing the plugins.

Expand Down Expand Up @@ -133,7 +133,7 @@ cmake --build . --config Release --target install
```
#### Building for Raspberry Pi

This repository includes a script for the Raspberry Pi users (Raspberry Pi OS based) that installs the prerequisites for building (cmake), downloads all of the source code needed and compiles and installs it.
This repository includes a script for the Raspberry Pi users (Raspberry Pi OS- / ALARM based) that installs the prerequisites for building (cmake), downloads all of the source code needed and compiles and installs it.


#### Building for Rosetta on the Mac M1
Expand Down
20 changes: 9 additions & 11 deletions scripts/rpi_build
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

0 comments on commit 24639cd

Please sign in to comment.