chiark / gitweb /
Add qt5 to the buildserver
[fdroidserver.git] / buildserver / cookbooks / fdroidbuild-general / recipes / default.rb
1
2 user = node[:settings][:user]
3 debian_mirror = node[:settings][:debian_mirror]
4
5 execute 'set_debian_mirror' do
6   command "sed -i 's,http://ftp.uk.debian.org/debian/,#{debian_mirror},g' /etc/apt/sources.list"
7 end
8
9 execute "jessie_backports" do
10   command "echo 'deb http://http.debian.net/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
11   only_if "grep jessie /etc/apt/sources.list"
12 end
13
14 execute "apt-get-update" do
15   command "apt-get update"
16 end
17
18 %w{
19     ant
20     ant-contrib
21     autoconf
22     autoconf2.13
23     automake1.11
24     autopoint
25     bison
26     bzr
27     cmake
28     curl
29     expect
30     faketime
31     flex
32     gettext
33     git-core
34     git-svn
35     gperf
36     graphviz
37     imagemagick
38     inkscape
39     javacc
40     libarchive-zip-perl
41     liblzma-dev
42     librsvg2-bin
43     libsaxonb-java
44     libssl-dev
45     libssl1.0.0
46     libtool
47     make
48     maven
49     mercurial
50     nasm
51     openjdk-7-jdk
52     openjdk-8-jdk
53     optipng
54     pandoc
55     perlmagick
56     pkg-config
57     python
58     python-gnupg
59     python-magic
60     python-setuptools
61     python-yaml
62     python3-gnupg
63     qt5-default
64     qtbase5-dev
65     quilt
66     realpath
67     scons
68     subversion
69     swig
70     texinfo
71     transfig
72     unzip
73     vorbis-tools
74     xsltproc
75     yasm
76     zip
77   }.each do |pkg|
78   package pkg do
79     action :install
80   end
81 end
82
83 if node['kernel']['machine'] == "x86_64"
84   %w{libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386}.each do |pkg|
85     package pkg do
86       action :install
87     end
88   end
89 end
90
91 easy_install_package "compare-locales" do
92   options "-U"
93   action :install
94 end
95
96 execute "add-bsenv" do
97   user user
98   command "echo \". ./.bsenv \" >> /home/#{user}/.bashrc"
99   not_if "grep bsenv /home/#{user}/.bashrc"
100 end
101
102 execute "set-default-java" do
103   command "update-java-alternatives --set java-1.7.0-openjdk-i386"
104 end
105