2021-02-01 18:45:47 +00:00
|
|
|
FROM ubuntu:18.04 AS tor
|
|
|
|
|
|
|
|
ENV CFLAGS="-fPIC"
|
|
|
|
ENV CPPFLAGS="-fPIC"
|
|
|
|
ENV CXXFLAGS="-fPIC"
|
|
|
|
ENV SOURCE_DATE_EPOCH=1397818193
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y build-essential wget git automake pkg-config python python3 && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-03-27 15:11:22 +00:00
|
|
|
RUN wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz && \
|
|
|
|
echo "892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5 openssl-1.1.1k.tar.gz" | sha256sum -c && \
|
|
|
|
tar -xzf openssl-1.1.1k.tar.gz && \
|
|
|
|
rm openssl-1.1.1k.tar.gz && \
|
|
|
|
cd openssl-1.1.1k && \
|
2021-02-01 18:45:47 +00:00
|
|
|
./config no-shared no-dso --prefix=/usr/local/openssl && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make test && \
|
|
|
|
make -j$THREADS install_sw && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
|
|
|
RUN wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz && \
|
|
|
|
echo "92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb libevent-2.1.12-stable.tar.gz" | sha256sum -c && \
|
|
|
|
tar -zxvf libevent-2.1.12-stable.tar.gz && \
|
|
|
|
cd libevent-2.1.12-stable && \
|
|
|
|
PKG_CONFIG_PATH=/usr/local/openssl/lib/pkgconfig/ \
|
|
|
|
./configure --prefix=/usr/local/libevent \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-pic && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
|
|
|
RUN git clone -b v1.2.11 --depth 1 https://github.com/madler/zlib && \
|
|
|
|
cd zlib && \
|
|
|
|
git reset --hard cacf7f1d4e3d44d871b605da3b647f07d718623f && \
|
|
|
|
./configure --static --prefix=/usr/local/zlib && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
2021-03-24 01:37:54 +00:00
|
|
|
RUN git clone -b tor-0.4.5.7 --depth 1 https://git.torproject.org/tor.git && \
|
2021-02-01 18:45:47 +00:00
|
|
|
cd tor && \
|
2021-03-24 01:37:54 +00:00
|
|
|
git reset --hard 83f895c015de55201e5f226f84a866f30f5ee14b && \
|
2021-02-01 18:45:47 +00:00
|
|
|
./autogen.sh && \
|
|
|
|
./configure \
|
|
|
|
--disable-asciidoc \
|
|
|
|
--disable-manpage \
|
|
|
|
--disable-html-manual \
|
|
|
|
--disable-system-torrc \
|
|
|
|
--disable-module-relay \
|
|
|
|
--disable-lzma \
|
|
|
|
--disable-zstd \
|
|
|
|
--enable-static-tor \
|
|
|
|
--with-libevent-dir=/usr/local/libevent \
|
2021-02-05 10:53:18 +00:00
|
|
|
--with-openssl-dir=/usr/local/openssl \
|
2021-02-01 18:45:47 +00:00
|
|
|
--with-zlib-dir=/usr/local/zlib \
|
|
|
|
--disable-tool-name-check \
|
|
|
|
--enable-fatal-warnings \
|
|
|
|
--prefix=/usr/local/tor && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install && \
|
2021-02-05 10:53:18 +00:00
|
|
|
rm -rf $(pwd) && \
|
|
|
|
strip -s -D /usr/local/tor/bin/tor
|
2021-02-01 18:45:47 +00:00
|
|
|
|
|
|
|
FROM ubuntu:16.04
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
ARG THREADS=1
|
2020-12-04 15:30:35 +00:00
|
|
|
ARG QT_VERSION=5.15.2
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
ENV CFLAGS="-fPIC"
|
|
|
|
ENV CPPFLAGS="-fPIC"
|
|
|
|
ENV CXXFLAGS="-fPIC"
|
|
|
|
ENV SOURCE_DATE_EPOCH=1397818193
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-02-05 10:53:18 +00:00
|
|
|
ENV OPENSSL_ROOT_DIR=/usr/local/openssl/
|
|
|
|
ENV TOR_BIN=/usr/local/tor/bin/tor
|
|
|
|
|
|
|
|
COPY --from=tor ${TOR_BIN} /usr/local/tor/bin/tor
|
2021-02-01 18:45:47 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
# dev tools
|
|
|
|
nano vim ccache \
|
|
|
|
# build tools
|
|
|
|
software-properties-common automake pkg-config python \
|
|
|
|
libtool-bin wget zip \
|
|
|
|
# Qt
|
|
|
|
libgl1-mesa-dev libglib2.0-dev mesa-common-dev \
|
|
|
|
# libusb
|
|
|
|
libudev-dev \
|
|
|
|
# fontconfig
|
2021-02-01 18:45:47 +00:00
|
|
|
autopoint gettext gperf libpng12-dev \
|
2021-01-13 13:01:51 +00:00
|
|
|
# libxcb
|
|
|
|
libpthread-stubs0-dev \
|
|
|
|
# xorgproto
|
|
|
|
xutils-dev \
|
|
|
|
# libxkbcommon
|
|
|
|
bison \
|
|
|
|
# zeromq
|
2021-01-15 21:04:53 +00:00
|
|
|
libsodium-dev \
|
|
|
|
# AppImage tools
|
|
|
|
file squashfs-tools desktop-file-utils patchelf
|
2021-01-13 13:01:51 +00:00
|
|
|
|
|
|
|
RUN add-apt-repository ppa:git-core/ppa && \
|
2021-01-14 16:40:46 +00:00
|
|
|
apt-get update && \
|
2021-01-13 13:01:51 +00:00
|
|
|
apt-get install -y git && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-05-21 20:09:23 +00:00
|
|
|
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_229-4ubuntu21.31_amd64.deb && \
|
|
|
|
echo "f1f72bd814d1e8ca2828ac004924fba0b54a3299e60f089c6d818262b11750f7 libudev-dev_229-4ubuntu21.31_amd64.deb" | sha256sum -c && \
|
|
|
|
apt install ./libudev-dev_229-4ubuntu21.31_amd64.deb && \
|
|
|
|
rm libudev-dev_229-4ubuntu21.31_amd64.deb
|
|
|
|
|
2021-01-15 21:04:53 +00:00
|
|
|
RUN mkdir appimagetool && \
|
|
|
|
cd appimagetool && \
|
|
|
|
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage && \
|
|
|
|
echo "d918b4df547b388ef253f3c9e7f6529ca81a885395c31f619d9aaf7030499a13 appimagetool-x86_64.AppImage" | sha256sum -c && \
|
|
|
|
chmod +x appimagetool-x86_64.AppImage && \
|
|
|
|
./appimagetool-x86_64.AppImage --appimage-extract && \
|
|
|
|
rm appimagetool-x86_64.AppImage
|
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b xorgproto-2020.1 --depth 1 https://gitlab.freedesktop.org/xorg/proto/xorgproto && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd xorgproto && \
|
|
|
|
git reset --hard c62e8203402cafafa5ba0357b6d1c019156c9f36 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./autogen.sh && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 1.12 --depth 1 https://gitlab.freedesktop.org/xorg/proto/xcbproto && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd xcbproto && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git reset --hard 6398e42131eedddde0d98759067dde933191f049 && \
|
|
|
|
./autogen.sh && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b libXau-1.0.9 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxau && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxau && \
|
|
|
|
git reset --hard d9443b2c57b512cfb250b35707378654d86c7dea && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b 1.12 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git reset --hard d34785a34f28fa6a00f8ce00d87e3132ff0f6467 && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install && \
|
|
|
|
make -j$THREADS clean && \
|
|
|
|
rm /usr/local/lib/libxcb-xinerama.so && \
|
|
|
|
./autogen.sh --disable-shared --enable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
cp src/.libs/libxcb-xinerama.a /usr/local/lib/ && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb-util && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb-util && \
|
|
|
|
git reset --hard acf790d7752f36e450d476ad79807d4012ec863b && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git submodule init && \
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/xorg/util/xcb-util-m4 m4 && \
|
|
|
|
git -C m4 reset --hard f662e3a93ebdec3d1c9374382dcc070093a42fed && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb-image && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb-image && \
|
|
|
|
git reset --hard d882052fb2ce439c6483fce944ba8f16f7294639 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git submodule init && \
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/xorg/util/xcb-util-m4 m4 && \
|
|
|
|
git -C m4 reset --hard f662e3a93ebdec3d1c9374382dcc070093a42fed && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb-keysyms && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb-keysyms && \
|
|
|
|
git reset --hard 0e51ee5570a6a80bdf98770b975dfe8a57f4eeb1 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git submodule init && \
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/xorg/util/xcb-util-m4 m4 && \
|
|
|
|
git -C m4 reset --hard f662e3a93ebdec3d1c9374382dcc070093a42fed && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 0.3.9 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb-render-util && \
|
|
|
|
git reset --hard 0317caf63de532fd7a0493ed6afa871a67253747 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git submodule init && \
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/xorg/util/xcb-util-m4 m4 && \
|
|
|
|
git -C m4 reset --hard f662e3a93ebdec3d1c9374382dcc070093a42fed && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b 0.4.1 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb-wm && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libxcb-wm && \
|
|
|
|
git reset --hard 24eb17df2e1245885e72c9d4bbb0a0f69f0700f2 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git submodule init && \
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/xorg/util/xcb-util-m4 m4 && \
|
|
|
|
git -C m4 reset --hard f662e3a93ebdec3d1c9374382dcc070093a42fed && \
|
|
|
|
./autogen.sh --enable-shared --disable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b xkbcommon-0.5.0 --depth 1 https://github.com/xkbcommon/libxkbcommon && \
|
2020-12-04 15:30:35 +00:00
|
|
|
cd libxkbcommon && \
|
|
|
|
git reset --hard c43c3c866eb9d52cd8f61e75cbef1c30d07f3a28 && \
|
|
|
|
./autogen.sh --prefix=/usr --enable-shared --disable-static --enable-x11 --disable-docs && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b v1.2.11 --depth 1 https://github.com/madler/zlib && \
|
|
|
|
cd zlib && \
|
|
|
|
git reset --hard cacf7f1d4e3d44d871b605da3b647f07d718623f && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --static --prefix=/usr/local/zlib && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2020-12-04 15:30:35 +00:00
|
|
|
RUN git clone -b VER-2-10-2 --depth 1 https://git.savannah.gnu.org/git/freetype/freetype2.git && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd freetype2 && \
|
|
|
|
git reset --hard 132f19b779828b194b3fede187cee719785db4d8 && \
|
|
|
|
./autogen.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static --with-zlib=no && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b R_2_2_9 --depth 1 https://github.com/libexpat/libexpat && \
|
|
|
|
cd libexpat/expat && \
|
|
|
|
git reset --hard a7bc26b69768f7fb24f0c7976fae24b157b85b13 && \
|
|
|
|
./buildconf.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b 2.13.92 --depth 1 https://gitlab.freedesktop.org/fontconfig/fontconfig && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd fontconfig && \
|
|
|
|
git reset --hard b1df1101a643ae16cdfa1d83b939de2497b1bf27 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./autogen.sh --disable-shared --enable-static --sysconfdir=/etc --localstatedir=/var && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b release-64-2 --depth 1 https://github.com/unicode-org/icu && \
|
|
|
|
cd icu/icu4c/source && \
|
|
|
|
git reset --hard e2d85306162d3a0691b070b4f0a73e4012433444 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static --disable-tests --disable-samples && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-05-05 00:05:57 +00:00
|
|
|
RUN wget https://downloads.sourceforge.net/project/boost/boost/1.73.0/boost_1_73_0.tar.bz2 && \
|
|
|
|
echo "4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402 boost_1_73_0.tar.bz2" | sha256sum -c && \
|
|
|
|
tar -xvf boost_1_73_0.tar.bz2 && \
|
|
|
|
rm boost_1_73_0.tar.bz2 && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd boost_1_73_0 && \
|
|
|
|
./bootstrap.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./b2 --with-atomic --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options --with-locale variant=release link=static runtime-link=static cflags="${CFLAGS}" cxxflags="${CXXFLAGS}" install -a --prefix=/usr && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-03-27 15:11:22 +00:00
|
|
|
RUN wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz && \
|
|
|
|
echo "892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5 openssl-1.1.1k.tar.gz" | sha256sum -c && \
|
|
|
|
tar -xzf openssl-1.1.1k.tar.gz && \
|
|
|
|
rm openssl-1.1.1k.tar.gz && \
|
|
|
|
cd openssl-1.1.1k && \
|
2021-01-13 13:01:51 +00:00
|
|
|
./config no-shared no-dso --prefix=/usr/local/openssl && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS && \
|
2021-01-13 13:01:51 +00:00
|
|
|
make test && \
|
|
|
|
make -j$THREADS install_sw && \
|
2020-12-04 15:30:35 +00:00
|
|
|
rm -rf $(pwd)
|
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN rm /usr/lib/x86_64-linux-gnu/libX11.a && \
|
2020-12-04 15:30:35 +00:00
|
|
|
rm /usr/lib/x86_64-linux-gnu/libXext.a && \
|
|
|
|
rm /usr/lib/x86_64-linux-gnu/libX11-xcb.a && \
|
|
|
|
git clone git://code.qt.io/qt/qt5.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
cd qt5 && \
|
|
|
|
git clone git://code.qt.io/qt/qtbase.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qtimageformats.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qtmultimedia.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qtsvg.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qttools.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qttranslations.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qtx11extras.git -b ${QT_VERSION} --depth 1 && \
|
|
|
|
git clone git://code.qt.io/qt/qtwebsockets.git -b ${QT_VERSION} --depth 1 && \
|
2020-10-07 10:36:04 +00:00
|
|
|
sed -ri s/\(Libs:.*\)/\\1\ -lexpat/ /usr/local/lib/pkgconfig/fontconfig.pc && \
|
|
|
|
sed -ri s/\(Libs:.*\)/\\1\ -lz/ /usr/local/lib/pkgconfig/freetype2.pc && \
|
|
|
|
sed -ri s/\(Libs:.*\)/\\1\ -lXau/ /usr/local/lib/pkgconfig/xcb.pc && \
|
2020-12-04 15:30:35 +00:00
|
|
|
sed -i s/\\/usr\\/X11R6\\/lib64/\\/usr\\/local\\/lib/ qtbase/mkspecs/linux-g++-64/qmake.conf && \
|
2020-10-07 10:36:04 +00:00
|
|
|
OPENSSL_LIBS="-lssl -lcrypto -lpthread -ldl" \
|
|
|
|
./configure --prefix=/usr -platform linux-g++-64 -opensource -confirm-license -release -static -no-avx \
|
2020-12-04 15:30:35 +00:00
|
|
|
-no-opengl -qpa xcb --xcb -xcb-xlib -feature-xlib -openssl-linked -I /usr/local/openssl/include \
|
|
|
|
-L /usr/local/openssl/lib -system-freetype -fontconfig -glib \
|
2020-10-07 10:36:04 +00:00
|
|
|
-no-dbus -no-sql-sqlite -no-use-gold-linker -no-kms \
|
|
|
|
-qt-harfbuzz -qt-libjpeg -qt-libpng -qt-pcre -qt-zlib \
|
|
|
|
-skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d \
|
|
|
|
-skip qtdoc -skip qtquickcontrols -skip qtquickcontrols2 -skip qtspeech -skip qtgamepad \
|
|
|
|
-skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -optimize-size \
|
|
|
|
-skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools \
|
|
|
|
-skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview \
|
|
|
|
-skip qtwinextras -skip qtx11extras -skip gamepad -skip serialbus -skip location -skip webengine \
|
2020-10-21 15:46:51 +00:00
|
|
|
-skip qtdeclarative \
|
2020-10-07 10:36:04 +00:00
|
|
|
-no-feature-cups -no-feature-ftp -no-feature-pdf -no-feature-animation \
|
2020-12-04 15:30:35 +00:00
|
|
|
-nomake examples -nomake tests -nomake tools && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
cd qttools/src/linguist/lrelease && \
|
|
|
|
../../../../qtbase/bin/qmake && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
cd ../../../.. && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-05-04 23:09:19 +00:00
|
|
|
RUN git clone -b v1.0.24 --depth 1 https://github.com/libusb/libusb && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libusb && \
|
2021-05-04 23:09:19 +00:00
|
|
|
git reset --hard c6a35c56016ea2ab2f19115d2ea1e85e0edae155 && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./autogen.sh --disable-shared --enable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-05-04 23:09:19 +00:00
|
|
|
RUN git clone -b hidapi-0.10.1 --depth 1 https://github.com/libusb/hidapi && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd hidapi && \
|
2021-05-04 23:09:19 +00:00
|
|
|
git reset --hard f6d0073fcddbdda24549199445e844971d3c9cef && \
|
2020-10-07 10:36:04 +00:00
|
|
|
./bootstrap && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-13 13:01:51 +00:00
|
|
|
RUN git clone -b v4.3.2 --depth 1 https://github.com/zeromq/libzmq && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libzmq && \
|
|
|
|
git reset --hard a84ffa12b2eb3569ced199660bac5ad128bff1f0 && \
|
|
|
|
./autogen.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static --disable-libunwind --with-libsodium && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b libgpg-error-1.38 --depth 1 git://git.gnupg.org/libgpg-error.git && \
|
|
|
|
cd libgpg-error && \
|
|
|
|
git reset --hard 71d278824c5fe61865f7927a2ed1aa3115f9e439 && \
|
|
|
|
./autogen.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static --disable-doc --disable-tests && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b libgcrypt-1.8.5 --depth 1 git://git.gnupg.org/libgcrypt.git && \
|
|
|
|
cd libgcrypt && \
|
|
|
|
git reset --hard 56606331bc2a80536db9fc11ad53695126007298 && \
|
|
|
|
./autogen.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --disable-shared --enable-static --disable-doc && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
RUN git clone -b v3.10.0 --depth 1 https://github.com/protocolbuffers/protobuf && \
|
|
|
|
cd protobuf && \
|
|
|
|
git reset --hard 6d4e7fd7966c989e38024a8ea693db83758944f1 && \
|
|
|
|
./autogen.sh && \
|
2020-12-04 15:30:35 +00:00
|
|
|
./configure --enable-static --disable-shared && \
|
2020-10-07 10:36:04 +00:00
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
|
|
|
RUN git clone -b v3.18.4 --depth 1 https://github.com/Kitware/CMake && \
|
|
|
|
cd CMake && \
|
|
|
|
git reset --hard 3cc3d42aba879fff5e85b363ae8f21386a3f9f9b && \
|
2021-02-05 10:53:18 +00:00
|
|
|
./bootstrap && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
2021-05-04 23:09:19 +00:00
|
|
|
RUN git clone -b v4.1.1 --depth 1 https://github.com/fukuchi/libqrencode.git && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd libqrencode && \
|
2021-05-04 23:09:19 +00:00
|
|
|
git reset --hard 715e29fd4cd71b6e452ae0f4e36d917b43122ce8 && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr . && \
|
|
|
|
make -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -j$THREADS install && \
|
|
|
|
rm -rf $(pwd)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-02-15 18:51:32 +00:00
|
|
|
RUN git clone https://git.featherwallet.org/feather/monero-seed.git && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cd monero-seed && \
|
2020-12-04 15:30:35 +00:00
|
|
|
git reset --hard 4674ef09b6faa6fe602ab5ae0b9ca8e1fd7d5e1b && \
|
2020-10-07 10:36:04 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -Bbuild && \
|
|
|
|
make -Cbuild -j$THREADS && \
|
2020-12-04 15:30:35 +00:00
|
|
|
make -Cbuild install && \
|
|
|
|
rm -rf $(pwd)
|
2021-01-15 21:04:53 +00:00
|
|
|
|
|
|
|
RUN git clone https://github.com/plougher/squashfs-tools.git && \
|
|
|
|
cd squashfs-tools/squashfs-tools && \
|
|
|
|
git reset --hard 38fa0720526222827da44b3b6c3f7eb63e8f5c2f && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
rm -rf $(pwd)
|
|
|
|
|
|
|
|
RUN mkdir linuxdeployqt && \
|
|
|
|
cd linuxdeployqt && \
|
|
|
|
wget https://github.com/probonopd/linuxdeployqt/releases/download/7/linuxdeployqt-7-x86_64.AppImage && \
|
|
|
|
echo "645276306a801d7154d59e5b4b3c2fac3d34e09be57ec31f6d9a09814c6c162a linuxdeployqt-7-x86_64.AppImage" | sha256sum -c && \
|
|
|
|
chmod +x linuxdeployqt-7-x86_64.AppImage && \
|
|
|
|
./linuxdeployqt-7-x86_64.AppImage --appimage-extract && \
|
|
|
|
rm linuxdeployqt-7-x86_64.AppImage
|
2021-04-26 10:56:04 +00:00
|
|
|
|
2021-05-04 23:09:19 +00:00
|
|
|
RUN git clone -b v1.7.3 --depth 1 https://github.com/nih-at/libzip.git && \
|
2021-04-26 10:56:04 +00:00
|
|
|
cd libzip && \
|
|
|
|
git reset --hard 66e496489bdae81bfda8b0088172871d8fda0032 && \
|
|
|
|
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr . && \
|
|
|
|
make -j$THREADS && \
|
|
|
|
make -j$THREADS install
|