mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-18 22:45:25 +02:00

This patch moves already existing packaging scripts from jami-project into client-qt. Introduced changes are: + WITH_SUBMODULE must search in system lib too because for packaging client-qt (for rpm) will be built separately, and will depend on jami-daemon. + Fix appdata.xml (replace old wiki with docs.jami.net) + path changes (because we build in client-qt not jami-project). GitLab: #853 Change-Id: I1313830d85c8094fcbcc52e22033a2add7b1e89f
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
FROM debian:buster
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get clean
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y -o Acquire::Retries=10 \
|
|
devscripts \
|
|
apt-utils \
|
|
equivs \
|
|
gcc-8 \
|
|
g++-8 \
|
|
clang \
|
|
clang-tools \
|
|
libarchive-dev \
|
|
wget
|
|
|
|
ADD extras/packaging/gnu-linux/scripts/prebuild-package-debian.sh /opt/prebuild-package-debian.sh
|
|
|
|
COPY extras/packaging/gnu-linux/rules/debian-qt/control /tmp/builddeps/debian/control
|
|
RUN /opt/prebuild-package-debian.sh qt-deps
|
|
|
|
COPY extras/packaging/gnu-linux/rules/debian/control /tmp/builddeps/debian/control
|
|
RUN /opt/prebuild-package-debian.sh jami-deps
|
|
|
|
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
|
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50
|
|
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
|
|
|
# Install CMake 3.19 for Qt 6
|
|
ADD extras/packaging/gnu-linux/scripts/install-cmake.sh /opt/install-cmake.sh
|
|
RUN /opt/install-cmake.sh
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
RUN apt install nodejs -y
|
|
|
|
ADD extras/packaging/gnu-linux/scripts/build-package-debian.sh /opt/build-package-debian.sh
|
|
|
|
RUN wget https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz -q -O /tmp/binutils.xz \
|
|
&& cd /tmp/ \
|
|
&& tar xvf binutils.xz \
|
|
&& cd binutils-2.37 \
|
|
&& ./configure \
|
|
&& make \
|
|
&& make install
|
|
|
|
CMD ["/opt/build-package-debian.sh"]
|