
ndk_loc = node[:settings][:ndk_loc]

script "setup-android-ndk" do
  interpreter "bash"
  user node[:settings][:user]
  cwd "/tmp"
  code "
    wget http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
    tar jxvf android-ndk-r8b-linux-x86.tar.bz2
    mv android-ndk-r8b #{ndk_loc}
  "
  not_if do
    File.exists?("#{ndk_loc}")
  end
end



ndk_loc = node[:settings][:ndk_loc]

script "setup-android-ndk" do
  interpreter "bash"
  user node[:settings][:user]
  cwd "/tmp"
  code "
    wget http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
    tar jxvf android-ndk-r8b-linux-x86.tar.bz2
    mv android-ndk-r8 #{ndk_loc}
  "
  not_if do
    File.exists?("#{ndk_loc}")
  end
end


--- 
+++ 
@@ -8,7 +8,7 @@
   code "
     wget http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
     tar jxvf android-ndk-r8b-linux-x86.tar.bz2
-    mv android-ndk-r8 #{ndk_loc}
+    mv android-ndk-r8b #{ndk_loc}
   "
   not_if do
     File.exists?("#{ndk_loc}")
Correct ndk-r8b install for build server
