-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker-box.yml
50 lines (50 loc) · 1.87 KB
/
wercker-box.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: mingw
version: 0.1.0
inherits: ruudk/ubuntu14.04@1.0.0
type: main
platform: ubuntu@14.04
description: wercker box for cross-compiling with mingw
keywords:
- mingw
- trusty
- wine
packages:
- software-properties-common
- make
- git
- curl
- patch
- m4
- p7zip-full
- g++
- dpkg-dev
- fakeroot
- g++-mingw-w64
- gfortran-mingw-w64
- wine1.7
script: |
sudo chmod a+w /etc/apt/sources.list
sudo echo 'deb-src http://archive.ubuntu.com/ubuntu trusty main restricted' >> /etc/apt/sources.list
sudo echo 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty restricted main universe multiverse' >> /etc/apt/sources.list
sudo echo 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe multiverse' >> /etc/apt/sources.list
sudo echo 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse' >> /etc/apt/sources.list
sudo echo 'deb-src http://security.ubuntu.com/ubuntu trusty-security restricted main universe multiverse' >> /etc/apt/sources.list
sudo echo 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-proposed restricted main universe multiverse' >> /etc/apt/sources.list
sudo apt-get update -y
sudo apt-get install --no-install-recommends software-properties-common make git curl patch m4 p7zip-full g++ dpkg-dev fakeroot -y
sudo apt-add-repository ppa:ubuntu-wine/ppa -y
sudo apt-get update -y
sudo apt-get install --no-install-recommends wine1.7 -y
mkdir ~/GCC
cd ~/GCC
apt-get source gcc-mingw-w64 -y
sudo apt-get build-dep gcc-mingw-w64 -y
cd gcc-mingw-w64-12
sed -i 's/--enable-threads=posix/--enable-threads=win32/g' debian/rules
sed -i 's/--enable-sjlj-exceptions//g' debian/rules
sed -i 's/libgcc_s_sjlj-1.dll/libgcc_s_seh-1.dll/g' debian/gcc-mingw-w64-x86-64.install
dpkg-buildpackage -rfakeroot -uc -b
cd ..
sudo dpkg -i *.deb
cd ..
rm -rf ~/GCC