tellstick: Refactor of add-on (#596)

* tellstick: Code formatting

* tellstick: Rewrite add-on onto Bashio

* tellstick: Adds README to add-on repository

* tellstick: Bump version to 2.0, added README
This commit is contained in:
Franck Nijhof
2019-06-02 14:44:30 +02:00
committed by Pascal Vizeli
parent adcbd24d6f
commit 81a49a8ec2
5 changed files with 302 additions and 74 deletions

View File

@@ -5,16 +5,34 @@ ENV LANG C.UTF-8
# Install Telldus library for TellStick (using same approach as in hassio docker installation)
RUN apk add --no-cache \
confuse libftdi1 libstdc++ socat \
confuse \
libftdi1 \
libstdc++ \
socat \
&& apk add --no-cache --virtual .build-dependencies \
cmake build-base gcc doxygen confuse-dev argp-standalone libftdi1-dev git \
argp-standalone \
build-base \
cmake \
confuse-dev \
doxygen \
gcc \
git \
libftdi1-dev \
&& ln -s /usr/include/libftdi1/ftdi.h /usr/include/ftdi.h \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone -b master --depth 1 https://github.com/telldus/telldus \
&& cd telldus/telldus-core \
&& sed -i "/\<sys\/socket.h\>/a \#include \<sys\/select.h\>" common/Socket_unix.cpp \
&& cmake . -DBUILD_LIBTELLDUS-CORE=ON -DBUILD_TDADMIN=OFF -DBUILD_TDTOOL=ON -DGENERATE_MAN=OFF -DFORCE_COMPILE_FROM_TRUNK=ON -DFTDI_LIBRARY=/usr/lib/libftdi1.so \
&& sed -i \
"/\<sys\/socket.h\>/a \#include \<sys\/select.h\>" \
common/Socket_unix.cpp \
&& cmake . \
-DBUILD_LIBTELLDUS-CORE=ON \
-DBUILD_TDADMIN=OFF \
-DBUILD_TDTOOL=ON \
-DGENERATE_MAN=OFF \
-DFORCE_COMPILE_FROM_TRUNK=ON \
-DFTDI_LIBRARY=/usr/lib/libftdi1.so \
&& make \
&& make install \
&& apk del .build-dependencies \