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

51 lines
1.1 KiB
Ruby
Raw Normal View History

ndk_loc = node[:settings][:ndk_loc]
user = node[:settings][:user]
script "setup-android-ndk" do
timeout 14400
interpreter "bash"
user node[:settings][:user]
cwd "/tmp"
code "
2015-11-21 02:24:19 +01:00
mkdir -p #{ndk_loc}
"
end
script "setup-android-ndk-r9b" do
timeout 14400
interpreter "bash"
user node[:settings][:user]
cwd "/tmp"
code "
if [ `uname -m` == 'x86_64' ] ; then
2013-10-06 13:52:38 +02:00
SUFFIX='_64'
else
2013-10-06 13:52:38 +02:00
SUFFIX=''
fi
2013-12-16 12:42:33 +01:00
tar jxvf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX.tar.bz2
tar jxvf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX-legacy-toolchains.tar.bz2
mv android-ndk-r9b #{ndk_loc}/r9b
"
2015-11-21 02:24:19 +01:00
not_if "test -d #{ndk_loc}/r9b"
end
2015-06-18 17:05:48 +02:00
script "setup-android-ndk-r10e" do
timeout 14400
interpreter "bash"
user node[:settings][:user]
cwd "/tmp"
code "
if [ `uname -m` == 'x86_64' ] ; then
SUFFIX='_64'
else
SUFFIX=''
fi
2015-06-18 17:05:48 +02:00
chmod u+x /vagrant/cache/android-ndk-r10e-linux-x86$SUFFIX.bin
/vagrant/cache/android-ndk-r10e-linux-x86$SUFFIX.bin x
mv android-ndk-r10e #{ndk_loc}/r10e
"
2015-11-21 02:24:19 +01:00
not_if "test -d #{ndk_loc}/r10e"
end