mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
f60f1bc59e
Specified per-build with ndk=<version> defaulting to the oldest, r9b.
44 lines
921 B
Ruby
44 lines
921 B
Ruby
|
|
ndk_loc = node[:settings][:ndk_loc]
|
|
user = node[:settings][:user]
|
|
|
|
script "setup-android-ndk-r9b" 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-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
|
|
"
|
|
not_if do
|
|
File.exists?("#{ndk_loc}/r9b")
|
|
end
|
|
end
|
|
|
|
script "setup-android-ndk-r10d" do
|
|
timeout 14400
|
|
interpreter "bash"
|
|
user node[:settings][:user]
|
|
cwd "/tmp"
|
|
code "
|
|
if [ `uname -m` == 'x86_64' ] ; then
|
|
SUFFIX='_64'
|
|
else
|
|
SUFFIX=''
|
|
fi
|
|
/vagrant/cache/android-ndk-r10d-linux-x86$SUFFIX.bin x
|
|
mv android-ndk-r10d #{ndk_loc}/r10d
|
|
"
|
|
not_if do
|
|
File.exists?("#{ndk_loc}/r10d")
|
|
end
|
|
end
|
|
|