Adding ssocr to docker to support Seven Segments Display (#8028)

* Adding ssocr to docker to support Seven Segments Display

* Adding cleanup
This commit is contained in:
Martin Tremblay 2017-06-15 23:31:30 -04:00 committed by Paulus Schoutsen
parent 92a6f21cc2
commit a3a702b269
4 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,29 @@
#!/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[@]}
# Clone the latest code from GitHub
git clone --depth 1 https://github.com/auerswal/ssocr.git /usr/local/src/ssocr
# Build ssocr
(
# Setup the build directory
cd /usr/local/src/ssocr
# compile the library
make
# Install the binaries/libraries to your local system (prefix is /usr/local)
make install
# Cleanup
make clean
)