This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb6d10b
commit 7f6e582
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# vcmi-deps-mxe | ||
Mirroring for MXE.cc deb repository | ||
# Mirror of MXE.cc deb repository for [VCMI](https://github.com/vcmi/vcmi) | ||
|
||
Travis CI download speed from MXE repository is constantly getting very slow. So we mirror it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
export MXE_TARGET=i686-w64-mingw32.shared | ||
export MIRROR_DATE=`date +"%Y-%m-%d"` | ||
|
||
sudo apt-get clean | ||
|
||
echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" \ | ||
| sudo tee /etc/apt/sources.list.d/mxeapt.list | ||
|
||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB | ||
|
||
sudo apt-get update -qq | ||
sudo apt-get install -q --yes --download-only \ | ||
mxe-$MXE_TARGET-gcc \ | ||
mxe-$MXE_TARGET-boost \ | ||
mxe-$MXE_TARGET-zlib \ | ||
mxe-$MXE_TARGET-sdl2 \ | ||
mxe-$MXE_TARGET-sdl2-gfx \ | ||
mxe-$MXE_TARGET-sdl2-image \ | ||
mxe-$MXE_TARGET-sdl2-mixer \ | ||
mxe-$MXE_TARGET-sdl2-ttf \ | ||
mxe-$MXE_TARGET-ffmpeg \ | ||
mxe-$MXE_TARGET-qt \ | ||
mxe-$MXE_TARGET-qtbase | ||
|
||
sudo apt-key del D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB | ||
sudo rm /etc/apt/sources.list.d/mxeapt.list | ||
|
||
cd /var/cache/apt/archives/ | ||
tar cvf /tmp/mxe-$MXE_TARGET-$MIRROR_DATE.tar /var/cache/apt/archives/mxe-*.deb | ||
|
||
sudo apt-get clean |