aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.debian
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2022-04-06 11:29:21 +0000
committerezkrg <ezkrg@ezkrg.me>2022-04-06 11:29:21 +0000
commit5bd5d19125cc1120b5bbd903446dd67e9dbaf5e6 (patch)
tree19259808e6a8d7a3ffb21454ec9992bbc5d71369 /Dockerfile.debian
parentuse plugin verions at build time (diff)
downloaddocker-bitlbee-libpurple-5bd5d19125cc1120b5bbd903446dd67e9dbaf5e6.tar.gz
docker-bitlbee-libpurple-5bd5d19125cc1120b5bbd903446dd67e9dbaf5e6.zip
update whatsapp to whatsmeow
Diffstat (limited to 'Dockerfile.debian')
-rw-r--r--Dockerfile.debian17
1 files changed, 11 insertions, 6 deletions
diff --git a/Dockerfile.debian b/Dockerfile.debian
index b2da3f2..f6e2a33 100644
--- a/Dockerfile.debian
+++ b/Dockerfile.debian
@@ -348,16 +348,21 @@ ARG WHATSAPP_VERSION
RUN echo WHATSAPP=${WHATSAPP} > /tmp/status \
&& if [ ${WHATSAPP} -eq 1 ]; \
then cd /tmp \
+ && echo "deb http://deb.debian.org/debian bullseye-backports main" | tee -a /etc/apt/sources.list \
&& apt-get update \
- && apt-get install -y --no-install-recommends golang-go \
+ && apt-get install -y --no-install-recommends -t bullseye-backports golang-go \
+ && apt-get install -y --no-install-recommends cmake pkg-config \
&& git clone -n https://github.com/hoehermann/purple-gowhatsapp.git \
&& cd purple-gowhatsapp \
&& git checkout ${WHATSAPP_VERSION} \
- && make \
- && make install \
- && strip /usr/lib/purple-2/libgowhatsapp.so; \
+ && mkdir build \
+ && cd build \
+ && cmake .. \
+ && cmake --build . \
+ && make install/strip \
+ && strip /usr/lib/purple-2/libwhatsmeow.so; \
else mkdir -p /usr/lib/purple-2 \
- && ln -sf /nowhere /usr/lib/purple-2/libgowhatsapp.so; \
+ && ln -sf /nowhere /usr/lib/purple-2/libwhatsmeow.so; \
fi
# ---
@@ -423,7 +428,7 @@ COPY --from=signald-build /tmp/status /tmp/plugin/signald
COPY --from=icyque-build /usr/lib/purple-2/libicyque.so /tmp/usr/lib/purple-2/libicyque.so
COPY --from=icyque-build /tmp/status /tmp/plugin/icyque
-COPY --from=whatsapp-build /usr/lib/purple-2/libgowhatsapp.so /tmp/usr/lib/purple-2/libgowhatsapp.so
+COPY --from=whatsapp-build /usr/lib/purple-2/libwhatsmeow.so /tmp/usr/lib/purple-2/libwhatsmeow.so
COPY --from=whatsapp-build /tmp/status /tmp/plugin/whatsapp
RUN apt-get update \