diff options
author | Attila Szabó <ezkrg@ezkrg.me> | 2020-11-04 07:47:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 07:47:44 +0000 |
commit | fb6b62172ba44e160785bea4a50b79f9e8984579 (patch) | |
tree | 04ba301c8aab8d678011132ce2d6a14438c02230 | |
parent | missing login in release (diff) | |
parent | added signald support (diff) | |
download | docker-bitlbee-libpurple-fb6b62172ba44e160785bea4a50b79f9e8984579.tar.gz docker-bitlbee-libpurple-fb6b62172ba44e160785bea4a50b79f9e8984579.zip |
Merge pull request #17 from heywoodlh/master
added signald support
-rw-r--r-- | Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -290,6 +290,27 @@ RUN echo MATRIX=${MATRIX} > /tmp/status \ # --- +FROM bitlbee-build as signald-build + +ARG SIGNAL=1 +ARG SIGNAL_VERSION=af18341 + +RUN echo SIGNAL=${SIGNAL} > /tmp/status \ + && if [ ${SIGNAL} -eq 1 ]; \ + then cd /tmp \ + && git clone -n https://github.com/hoehermann/libpurple-signald \ + && cd libpurple-signald \ + && git checkout ${SIGNAL_VERSION} \ + && make \ + && make install \ + && strip /usr/lib/purple-2/libsignald.so; \ + else mkdir -p /usr/lib/purple-2 \ + && ln -sf /nowhere /usr/lib/purple-2/libsignald.so; \ + fi + +# --- + + FROM alpine:${ALPINE_VERSION} as bitlbee-plugins COPY --from=bitlbee-build /usr/sbin/bitlbee /tmp/usr/sbin/bitlbee @@ -346,6 +367,9 @@ COPY --from=matrix-build /usr/local/lib/libolm.so.3.1.4 /tmp/usr/local/lib/libol COPY --from=matrix-build /usr/lib/purple-2/libmatrix.so /tmp/usr/lib/purple-2/libmatrix.so COPY --from=matrix-build /tmp/status /tmp/plugin/matrix +COPY --from=signald-build /usr/lib/purple-2/libsignald.so /tmp/usr/lib/purple-2/libsignald.so +COPY --from=signald-build /tmp/status /tmp/plugin/signald + RUN apk add --update --no-cache findutils \ && find /tmp/ -type f -empty -delete \ && find /tmp/ -type d -empty -delete \ |