chiark / gitweb /
Add optipng, useful for some apps
[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 autopoint bison cmake expect libtool libsaxonb-java libssl1.0.0 libssl-dev maven openjdk-7-jdk javacc python python-magic git-core mercurial subversion bzr git-svn make perlmagick pkg-config zip yasm imagemagick gettext realpath transfig texinfo curl librsvg2-bin xsltproc vorbis-tools swig quilt faketime optipng}.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 execute "add-bsenv" do
23   user user
24   command "echo \". ./.bsenv \" >> /home/#{user}/.bashrc"
25   not_if "grep bsenv /home/#{user}/.bashrc"
26 end
27
28