2024-05-02 10:02:45 -04:00
|
|
|
FROM ubuntu:noble AS builder
|
2021-02-27 11:59:17 -06:00
|
|
|
|
2018-05-12 19:26:31 -04:00
|
|
|
RUN apt-get update \
|
2018-12-09 11:20:58 -05:00
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
2018-12-15 12:52:17 -05:00
|
|
|
apt-get install -qy --no-install-recommends \
|
2019-02-21 08:59:29 -05:00
|
|
|
audacious-dev \
|
2021-02-27 11:59:17 -06:00
|
|
|
ca-certificates \
|
|
|
|
clang \
|
2024-05-02 10:02:45 -04:00
|
|
|
cmake \
|
2021-02-27 13:10:06 -06:00
|
|
|
curl \
|
|
|
|
gfortran \
|
2021-02-27 11:59:17 -06:00
|
|
|
git \
|
2024-04-28 18:33:03 -04:00
|
|
|
gperf \
|
2021-02-28 10:46:19 -06:00
|
|
|
libarchive-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libaudclient-dev \
|
2022-12-27 15:34:49 -05:00
|
|
|
libc++-dev \
|
|
|
|
libc++abi-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libcairo2-dev \
|
|
|
|
libcurl4-openssl-dev \
|
2022-09-10 13:05:39 -05:00
|
|
|
libdbus-glib-1-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libical-dev \
|
|
|
|
libimlib2-dev \
|
|
|
|
libircclient-dev \
|
|
|
|
libiw-dev \
|
2021-02-28 10:46:19 -06:00
|
|
|
libjsoncpp-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
liblua5.3-dev \
|
|
|
|
libmicrohttpd-dev \
|
|
|
|
libmysqlclient-dev \
|
2021-02-27 11:59:17 -06:00
|
|
|
libncurses-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libpulse-dev \
|
2021-02-28 10:46:19 -06:00
|
|
|
librhash-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
librsvg2-dev \
|
2021-02-27 11:59:17 -06:00
|
|
|
libssl-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libsystemd-dev \
|
2021-02-28 10:46:19 -06:00
|
|
|
libuv1-dev \
|
2019-02-21 08:59:29 -05:00
|
|
|
libxdamage-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxft-dev \
|
|
|
|
libxinerama-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxmmsclient-dev \
|
|
|
|
libxnvctrl-dev \
|
2022-12-25 08:24:31 -05:00
|
|
|
ninja-build \
|
2021-02-27 11:59:17 -06:00
|
|
|
patch \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-05-12 19:26:31 -04:00
|
|
|
COPY . /conky
|
|
|
|
WORKDIR /conky/build
|
2021-02-27 11:59:17 -06:00
|
|
|
|
2018-02-18 16:56:45 +01:00
|
|
|
ARG X11=yes
|
2018-05-12 19:26:31 -04:00
|
|
|
|
2018-05-13 13:33:18 -04:00
|
|
|
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
2022-12-25 08:21:38 -05:00
|
|
|
cmake -G Ninja \
|
2021-02-27 11:59:17 -06:00
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
2019-02-21 08:59:29 -05: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 \
|
2024-04-28 18:33:03 -04:00
|
|
|
-DBUILD_LUA_CAIRO_XLIB=ON \
|
2019-02-21 08:59:29 -05:00
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
2022-09-10 12:06:35 -05:00
|
|
|
-DBUILD_LUA_RSVG=ON \
|
2019-02-21 08:59:29 -05:00
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_NVIDIA=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
2022-12-24 10:57:50 -05:00
|
|
|
-DBUILD_WAYLAND=OFF \
|
2019-02-21 08:59:29 -05:00
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
../ \
|
2018-12-15 12:52:17 -05:00
|
|
|
; else \
|
2022-12-25 08:21:38 -05:00
|
|
|
cmake -G Ninja \
|
2021-02-27 11:59:17 -06:00
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
2019-02-21 08:59:29 -05: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 12:06:35 -05:00
|
|
|
-DBUILD_LUA_RSVG=ON \
|
2019-02-21 08:59:29 -05:00
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
2022-12-24 10:57:50 -05:00
|
|
|
-DBUILD_WAYLAND=OFF \
|
2019-02-21 08:59:29 -05:00
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
../ \
|
2018-12-15 12:52:17 -05:00
|
|
|
; fi' \
|
2022-12-26 13:54:10 -05:00
|
|
|
&& cmake --build . \
|
|
|
|
&& cmake --install .
|
2019-02-21 08:59:29 -05:00
|
|
|
|
2024-05-02 10:02:45 -04:00
|
|
|
FROM ubuntu:noble
|
2019-02-21 08:59:29 -05:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install -qy --no-install-recommends \
|
|
|
|
libaudclient2 \
|
2022-12-27 15:34:49 -05:00
|
|
|
libc++1 \
|
|
|
|
libc++abi1 \
|
2019-02-21 08:59:29 -05:00
|
|
|
libcairo2 \
|
2024-05-02 11:12:52 -04:00
|
|
|
libcurl4t64 \
|
2022-09-10 13:05:39 -05:00
|
|
|
libdbus-glib-1-2 \
|
2024-05-02 11:12:52 -04:00
|
|
|
libical3t64 \
|
|
|
|
libimlib2t64 \
|
2019-02-21 08:59:29 -05:00
|
|
|
libircclient1 \
|
2024-05-02 11:12:52 -04:00
|
|
|
libiw30t64 \
|
2019-02-21 08:59:29 -05:00
|
|
|
liblua5.3-0 \
|
2024-05-02 11:12:52 -04:00
|
|
|
libmicrohttpd12t64 \
|
2021-02-27 10:46:54 -06:00
|
|
|
libmysqlclient21 \
|
2021-02-27 10:42:13 -06:00
|
|
|
libncurses6 \
|
2019-02-21 08:59:29 -05:00
|
|
|
libpulse0 \
|
|
|
|
librsvg2-2 \
|
2021-02-27 11:59:17 -06:00
|
|
|
libsm6 \
|
2019-02-21 08:59:29 -05:00
|
|
|
libsystemd0 \
|
|
|
|
libxcb-xfixes0 \
|
|
|
|
libxdamage1 \
|
|
|
|
libxext6 \
|
|
|
|
libxfixes3 \
|
|
|
|
libxft2 \
|
2024-05-02 10:02:45 -04:00
|
|
|
libxi6 \
|
2019-02-21 08:59:29 -05:00
|
|
|
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 19:26:31 -04:00
|
|
|
|
2019-02-21 08:59:29 -05:00
|
|
|
ENTRYPOINT [ "/opt/conky/bin/conky" ]
|