1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-07 16:00:13 +01:00
fdroidserver/buildserver/cookbooks/android-ndk/recipes/default.rb

23 lines
415 B
Ruby
Raw Normal View History

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
2013-10-06 10:21:14 +02:00
tar jxvf /vagrant/cache/android-ndk-r9-linux-x86$SUFFIX.tar.bz2
2013-04-02 23:32:49 +02:00
mv android-ndk-r8e #{ndk_loc}
"
not_if do
File.exists?("#{ndk_loc}")
end
end