2020-04-25 00:12:02 +00:00
|
|
|
FROM archlinux:latest
|
2021-07-14 05:23:48 +00:00
|
|
|
LABEL maintainer="yuzu"
|
2021-09-30 23:41:53 +00:00
|
|
|
|
2020-04-25 00:12:02 +00:00
|
|
|
# Add mingw-repo "ownstuff" is a AUR with an up to date mingw64
|
2021-09-30 23:41:53 +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-08 02:22:08 +00:00
|
|
|
RUN useradd -m -u 1027 -s /bin/bash yuzu && mkdir -p /tmp/pkgs && \
|
2020-05-01 04:39:10 +00:00
|
|
|
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 \
|
2022-05-29 02:15:41 +00:00
|
|
|
clang \
|
|
|
|
polly \
|
|
|
|
lld \
|
|
|
|
sudo \
|
2020-04-25 00:12:02 +00:00
|
|
|
gnupg \
|
|
|
|
wget \
|
|
|
|
git \
|
2020-11-20 00:57:56 +00:00
|
|
|
glslang \
|
2023-07-09 20:15:10 +00:00
|
|
|
# TODO: Remove python-pip after a reasonable amount of time has passed to let yuzu PRs rebase its scripts
|
|
|
|
python-pefile \
|
2020-04-25 00:12:02 +00:00
|
|
|
python-pip \
|
|
|
|
python \
|
|
|
|
ccache \
|
|
|
|
p7zip \
|
|
|
|
cmake \
|
|
|
|
ninja \
|
|
|
|
mingw-w64-gcc \
|
2022-05-29 02:15:41 +00:00
|
|
|
mingw-w64-libusb \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-lz4 \
|
2022-07-22 04:27:56 +00:00
|
|
|
mingw-w64-nlohmann-json \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-opus \
|
2022-05-29 02:15:41 +00:00
|
|
|
mingw-w64-qt5-base \
|
|
|
|
mingw-w64-qt5-declarative \
|
|
|
|
mingw-w64-qt5-graphicaleffects \
|
|
|
|
mingw-w64-qt5-multimedia \
|
|
|
|
mingw-w64-qt5-tools \
|
|
|
|
mingw-w64-qt5-winextras \
|
2020-05-06 08:27:23 +00:00
|
|
|
mingw-w64-tools \
|
|
|
|
mingw-w64-winpthreads \
|
|
|
|
mingw-w64-zlib \
|
2022-05-29 02:15:41 +00:00
|
|
|
mingw-w64-zstd \
|
2020-05-06 08:27:23 +00:00
|
|
|
&& \
|
2020-05-01 04:39:10 +00:00
|
|
|
pacman -Scc --noconfirm && \
|
2021-05-31 07:57:46 +00:00
|
|
|
rm -rf /usr/share/man/ /tmp/* /var/tmp/ /usr/{i686-w64-mingw32,lib32} /usr/lib/gcc/i686-w64-mingw32
|
2020-04-25 00:12:02 +00:00
|
|
|
|
2023-03-25 21:43:43 +00:00
|
|
|
# Install Boost from yuzu-emu/ext-linux-bin
|
|
|
|
RUN wget --no-verbose \
|
|
|
|
https://github.com/yuzu-emu/ext-linux-bin/raw/main/mingw/mingw-w64-boost-1.79.0-1-any.pkg.tar.zst && \
|
|
|
|
pacman -U --noconfirm mingw-w64-boost-1.79.0-1-any.pkg.tar.zst && \
|
|
|
|
rm mingw-w64-boost-1.79.0-1-any.pkg.tar.zst
|
|
|
|
|
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
|
2022-05-29 02:15:41 +00:00
|
|
|
# Give yuzu user sudo access for AUR usage
|
|
|
|
RUN echo "yuzu ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
2020-04-25 00:12:02 +00:00
|
|
|
|
2020-05-08 02:22:08 +00:00
|
|
|
USER 1027
|
2022-05-29 02:15:41 +00:00
|
|
|
|
|
|
|
# Build/install small AUR packages
|
|
|
|
RUN \
|
2022-08-29 19:09:18 +00:00
|
|
|
# mingw-w64-sdl2
|
|
|
|
cd && \
|
|
|
|
git clone https://aur.archlinux.org/mingw-w64-sdl2.git && \
|
|
|
|
cd mingw-w64-sdl2 && \
|
2023-06-05 20:04:39 +00:00
|
|
|
# Revert to SDL 2.26.4
|
|
|
|
git checkout 277c44a && \
|
2022-08-29 19:09:18 +00:00
|
|
|
# Only build for x86_64
|
|
|
|
sed -i "s/'i686-w64-mingw32'//g" PKGBUILD && \
|
|
|
|
makepkg -si --noconfirm --noprogressbar && \
|
|
|
|
# Get rid of -mwindows from SDL2 CMake configs
|
|
|
|
sudo sed -i 's/-mwindows//g' /usr/x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake && \
|
2022-05-29 02:15:41 +00:00
|
|
|
# mingw-w64-clang -- MinGW wrapper for host clang
|
|
|
|
cd && \
|
2022-07-02 21:56:25 +00:00
|
|
|
git clone https://aur.archlinux.org/mingw-w64-wclang-git.git && \
|
|
|
|
cd mingw-w64-wclang-git && \
|
2022-05-29 02:15:41 +00:00
|
|
|
makepkg -si --noconfirm --noprogressbar && \
|
|
|
|
# mingw-w64-fmt
|
|
|
|
cd && \
|
|
|
|
git clone https://aur.archlinux.org/mingw-w64-fmt.git && \
|
|
|
|
cd mingw-w64-fmt && \
|
|
|
|
# Only build for x86_64
|
|
|
|
sed -i 's/i686-w64-mingw32//g' PKGBUILD && \
|
|
|
|
makepkg -si --noconfirm --noprogressbar --nocheck && \
|
|
|
|
# cleanup
|
|
|
|
cd && rm -rf mingw-* && \
|
|
|
|
sudo sed -i 's/yuzu/#yuzu/g' /etc/sudoers
|
|
|
|
|