1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00
fdroidserver/buildserver/cookbooks/android-ndk/recipes/default.rb
Ciaran Gultnieks cb16a63409 Much better build server provisioning
Including selection of correct ndk architecture, caching and performance
improvements, better configurability, etc.
2013-05-31 07:48:39 +01:00

23 lines
416 B
Ruby

ndk_loc = node[:settings][:ndk_loc]
script "setup-android-ndk" do
timeout 14400
interpreter "bash"
user node[:settings][:user]
cwd "/tmp"
code "
if [ `uname -m` == 'x86_64' ] ; then
SUFFIX = '_64'
else
SUFFIX = ''
fi
tar jxvf /vagrant/cache/android-ndk-r8e-linux-x86$SUFFIX.tar.bz2
mv android-ndk-r8e #{ndk_loc}
"
not_if do
File.exists?("#{ndk_loc}")
end
end