chiark / gitweb /
f399c7957a1de926bcb823e215b80f917c3c43b5
[fdroidserver.git] / buildserver / cookbooks / fdroidbuild-general / recipes / default.rb
1
2 user = node[:settings][:user]
3
4 execute "apt-get-update" do
5   command "apt-get update"
6 end
7
8 %w{ant ant-contrib autoconf autoconf2.13 autopoint bison bzr cmake curl expect faketime flex gettext git-core git-svn gperf graphviz imagemagick inkscape javacc libarchive-zip-perl librsvg2-bin libsaxonb-java libssl-dev libssl1.0.0 libtool make maven mercurial nasm openjdk-7-jdk optipng pandoc perlmagick pkg-config python python-gnupg python-magic python-setuptools python3-gnupg quilt realpath scons subversion swig texinfo transfig unzip vorbis-tools xsltproc yasm zip}.each do |pkg|
9   package pkg do
10     action :install
11   end
12 end
13
14 if node['kernel']['machine'] == "x86_64"
15   %w{libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386}.each do |pkg|
16     package pkg do
17       action :install
18     end
19   end
20 end
21
22 easy_install_package "compare-locales" do
23   options "-U"
24   action :install
25 end
26
27 execute "add-bsenv" do
28   user user
29   command "echo \". ./.bsenv \" >> /home/#{user}/.bashrc"
30   not_if "grep bsenv /home/#{user}/.bashrc"
31 end
32
33