2020-04-25 00:12:02 +00:00
|
|
|
FROM archlinux:latest
|
2019-03-23 00:27:11 +00:00
|
|
|
MAINTAINER yuzu
|
2020-04-25 00:12:02 +00:00
|
|
|
# Add mingw-repo "ownstuff" is a AUR with an up to date mingw64
|
2020-05-06 08:27:23 +00:00
|
|
|
# Runs pacman -Syu twice in order to work around pacman issues where the first run only updates the current distro packages
|
|
|
|
# and the second run actually pulls the updates from the repos.
|
2020-05-01 04:39:10 +00:00
|
|
|
RUN useradd -m -s /bin/bash yuzu && mkdir -p /tmp/pkgs && \
|
|
|
|
echo "[ownstuff]" >> /etc/pacman.conf && \
|
|
|
|
echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf && \
|
|
|
|
echo "Server = https://martchus.no-ip.biz/repo/arch/ownstuff/os/\$arch" >> /etc/pacman.conf && \
|
|
|
|
pacman -Syu --noconfirm && \
|
|
|
|
pacman -Syu --noconfirm && \
|
|
|
|
pacman -S --needed --noconfirm --noprogressbar \
|
2020-04-25 00:12:02 +00:00
|
|
|
base-devel \
|
|
|
|
gnupg \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
python-pip \
|
|
|
|
python \
|
2020-05-06 08:27:23 +00:00
|
|
|
python2 \
|
2020-04-25 00:12:02 +00:00
|
|
|
ccache \
|
|
|
|
p7zip \
|
|
|
|
cmake \
|
|
|
|
ninja \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-boost \
|
2020-04-25 00:12:02 +00:00
|
|
|
mingw-w64-gcc \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-lz4 \
|
|
|
|
mingw-w64-opus \
|
2020-04-25 00:12:02 +00:00
|
|
|
mingw-w64-qt5-base \
|
|
|
|
mingw-w64-qt5-tools \
|
|
|
|
mingw-w64-qt5-graphicaleffects \
|
|
|
|
mingw-w64-qt5-multimedia \
|
|
|
|
mingw-w64-qt5-winextras \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-sdl2 \
|
|
|
|
mingw-w64-tools \
|
|
|
|
mingw-w64-winpthreads \
|
|
|
|
mingw-w64-zlib \
|
|
|
|
mingw-w64-zstd \
|
|
|
|
&& \
|
2020-05-01 04:39:10 +00:00
|
|
|
pacman -Scc --noconfirm && \
|
|
|
|
rm -rf /usr/share/man/ /tmp/ /var/tmp/
|
2020-04-25 00:12:02 +00:00
|
|
|
|
2020-05-06 08:27:23 +00:00
|
|
|
# Setup extra mingw work arounds
|
2020-05-01 04:39:10 +00:00
|
|
|
COPY mingw-setup.sh /tmp/
|
|
|
|
RUN cd /tmp/ && bash -e mingw-setup.sh
|
2020-04-25 00:12:02 +00:00
|
|
|
# Compatibility with the old Ubuntu MingW image
|
|
|
|
RUN ln -s /usr/x86_64-w64-mingw32/lib/qt /usr/x86_64-w64-mingw32/lib/qt5
|
|
|
|
|
2020-05-06 08:27:23 +00:00
|
|
|
# Install conan and add the mingw cross compile as the default profile
|
|
|
|
RUN pip3 install conan
|
|
|
|
COPY --chown=yuzu:yuzu default /home/yuzu/.conan/profiles/
|
|
|
|
USER yuzu
|
|
|
|
# Install/build the missing libs (uses the default mingw cross compile profile)
|
|
|
|
RUN conan install catch2/2.11.0@ --build=missing && \
|
|
|
|
conan install fmt/6.2.0@ --build=missing && \
|
|
|
|
conan install nlohmann_json/3.7.3@ --build=missing
|