2022-09-10 17:06:35 +00:00
|
|
|
FROM ubuntu:jammy AS builder
|
2021-02-27 17:59:17 +00:00
|
|
|
|
2018-05-12 23:26:31 +00:00
|
|
|
RUN apt-get update \
|
2018-12-09 16:20:58 +00:00
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
2018-12-15 17:52:17 +00:00
|
|
|
apt-get install -qy --no-install-recommends \
|
2019-02-21 13:59:29 +00:00
|
|
|
audacious-dev \
|
2021-02-27 17:59:17 +00:00
|
|
|
ca-certificates \
|
|
|
|
clang \
|
2021-02-27 19:10:06 +00:00
|
|
|
curl \
|
|
|
|
gfortran \
|
2021-02-27 17:59:17 +00:00
|
|
|
git \
|
2021-02-28 16:46:19 +00:00
|
|
|
libarchive-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libaudclient-dev \
|
2022-12-27 20:34:49 +00:00
|
|
|
libc++-dev \
|
|
|
|
libc++abi-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libcairo2-dev \
|
|
|
|
libcurl4-openssl-dev \
|
2022-09-10 18:05:39 +00:00
|
|
|
libdbus-glib-1-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libical-dev \
|
|
|
|
libimlib2-dev \
|
|
|
|
libircclient-dev \
|
|
|
|
libiw-dev \
|
2021-02-28 16:46:19 +00:00
|
|
|
libjsoncpp-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
liblua5.3-dev \
|
|
|
|
libmicrohttpd-dev \
|
|
|
|
libmysqlclient-dev \
|
2021-02-27 17:59:17 +00:00
|
|
|
libncurses-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libpulse-dev \
|
2021-02-28 16:46:19 +00:00
|
|
|
librhash-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
librsvg2-dev \
|
2021-02-27 17:59:17 +00:00
|
|
|
libssl-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libsystemd-dev \
|
2021-02-28 16:46:19 +00:00
|
|
|
libuv1-dev \
|
2019-02-21 13:59:29 +00:00
|
|
|
libxdamage-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxft-dev \
|
|
|
|
libxinerama-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxmmsclient-dev \
|
|
|
|
libxnvctrl-dev \
|
2021-02-27 17:59:17 +00:00
|
|
|
make \
|
2022-12-25 13:24:31 +00:00
|
|
|
ninja-build \
|
2021-02-27 17:59:17 +00:00
|
|
|
patch \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Compile CMake, we need the latest because the bug here (for armv7 builds):
|
|
|
|
# https://gitlab.kitware.com/cmake/cmake/-/issues/20568
|
|
|
|
WORKDIR /cmake
|
2022-12-27 13:24:56 +00:00
|
|
|
RUN curl -Lq https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz -o cmake-3.25.1.tar.gz \
|
|
|
|
&& tar xf cmake-3.25.1.tar.gz \
|
|
|
|
&& cd cmake-3.25.1 \
|
2021-02-28 16:46:19 +00:00
|
|
|
&& CC=clang CXX=clang++ CFLAGS="-D_FILE_OFFSET_BITS=64" CXXFLAGS="-D_FILE_OFFSET_BITS=64" ./bootstrap --system-libs --parallel=5 \
|
2021-02-27 17:59:17 +00:00
|
|
|
&& make -j5 \
|
|
|
|
&& make -j5 install \
|
|
|
|
&& cd \
|
|
|
|
&& rm -rf /cmake
|
2018-12-23 16:37:19 +00:00
|
|
|
|
2018-05-12 23:26:31 +00:00
|
|
|
COPY . /conky
|
|
|
|
WORKDIR /conky/build
|
2021-02-27 17:59:17 +00:00
|
|
|
|
2018-02-18 15:56:45 +00:00
|
|
|
ARG X11=yes
|
2018-05-12 23:26:31 +00:00
|
|
|
|
2018-05-13 17:33:18 +00:00
|
|
|
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
2022-12-25 13:21:38 +00:00
|
|
|
cmake -G Ninja \
|
2021-02-27 17:59:17 +00:00
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
2022-09-10 17:06:35 +00:00
|
|
|
-DBUILD_LUA_RSVG=ON \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_NVIDIA=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
2022-12-24 15:57:50 +00:00
|
|
|
-DBUILD_WAYLAND=OFF \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
../ \
|
2018-12-15 17:52:17 +00:00
|
|
|
; else \
|
2022-12-25 13:21:38 +00:00
|
|
|
cmake -G Ninja \
|
2021-02-27 17:59:17 +00:00
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
2022-09-10 17:06:35 +00:00
|
|
|
-DBUILD_LUA_RSVG=ON \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
2022-12-24 15:57:50 +00:00
|
|
|
-DBUILD_WAYLAND=OFF \
|
2019-02-21 13:59:29 +00:00
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
../ \
|
2018-12-15 17:52:17 +00:00
|
|
|
; fi' \
|
2022-12-26 18:54:10 +00:00
|
|
|
&& cmake --build . \
|
|
|
|
&& cmake --install .
|
2019-02-21 13:59:29 +00:00
|
|
|
|
2022-09-10 18:05:39 +00:00
|
|
|
FROM ubuntu:jammy
|
2019-02-21 13:59:29 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install -qy --no-install-recommends \
|
|
|
|
libaudclient2 \
|
2022-12-27 20:34:49 +00:00
|
|
|
libc++1 \
|
|
|
|
libc++abi1 \
|
2019-02-21 13:59:29 +00:00
|
|
|
libcairo2 \
|
|
|
|
libcurl4 \
|
2022-09-10 18:05:39 +00:00
|
|
|
libdbus-glib-1-2 \
|
2019-02-21 13:59:29 +00:00
|
|
|
libical3 \
|
|
|
|
libimlib2 \
|
|
|
|
libircclient1 \
|
|
|
|
libiw30 \
|
|
|
|
liblua5.3-0 \
|
|
|
|
libmicrohttpd12 \
|
2021-02-27 16:46:54 +00:00
|
|
|
libmysqlclient21 \
|
2021-02-27 16:42:13 +00:00
|
|
|
libncurses6 \
|
2019-02-21 13:59:29 +00:00
|
|
|
libpulse0 \
|
|
|
|
librsvg2-2 \
|
2021-02-27 17:59:17 +00:00
|
|
|
libsm6 \
|
2019-02-21 13:59:29 +00:00
|
|
|
libsystemd0 \
|
|
|
|
libxcb-xfixes0 \
|
|
|
|
libxdamage1 \
|
|
|
|
libxext6 \
|
|
|
|
libxfixes3 \
|
|
|
|
libxft2 \
|
|
|
|
libxinerama1 \
|
|
|
|
libxml2 \
|
|
|
|
libxmmsclient6 \
|
|
|
|
libxnvctrl0 \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY --from=builder /opt/conky /opt/conky
|
|
|
|
|
|
|
|
ENV PATH="/opt/conky/bin:${PATH}"
|
|
|
|
ENV LD_LIBRARY_PATH="/opt/conky/lib:${LD_LIBRARY_PATH}"
|
2018-05-12 23:26:31 +00:00
|
|
|
|
2019-02-21 13:59:29 +00:00
|
|
|
ENTRYPOINT [ "/opt/conky/bin/conky" ]
|