hass-core/virtualization/Docker/scripts/ssocr
Daniel Bowman 0ad9fcd8a0 Add -j$(nproc) make option to speed up build time (#15928)
Adding `-j$(nproc)` reduces build time on the external dependencies by
approximately 25%.
2018-08-14 21:28:29 +02:00

24 lines
473 B
Bash
Executable file

#!/bin/bash
# Sets up ssocr to support Seven Segments Display.
# Stop on errors
set -e
PACKAGES=(
libimlib2 libimlib2-dev
)
apt-get install -y --no-install-recommends ${PACKAGES[@]}
cd /usr/src/app/
mkdir -p build && cd build
# Clone the latest code from GitHub
git clone --depth 1 https://github.com/auerswal/ssocr.git ssocr
cd ssocr/
# Compile the library
make -j$(nproc)
# Install the binaries/libraries to your local system (prefix is /usr/local)
make install