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

37 lines
752 B
Ruby
Raw Normal View History

2013-11-24 23:11:02 +01:00
user = node[:settings][:user]
2013-12-01 17:47:27 +01:00
%w{cython python-pygame python-pip python-virtualenv python-opengl python-gst0.10 python-enchant libgl1-mesa-dev libgles2-mesa-dev}.each do |pkg|
2013-11-24 23:11:02 +01:00
package pkg do
action :install
end
end
script "install-kivy" do
cwd "/tmp"
interpreter "bash"
code "
tar xf /vagrant/cache/Kivy-1.7.2.tar.gz
cd Kivy-1.7.2
2013-11-26 23:06:45 +01:00
python setup.py install
2013-11-24 23:11:02 +01:00
cd ..
rm -rf Kivy*
"
not_if "python -c 'import kivy'"
end
script "install-p4a" do
cwd "/home/vagrant"
interpreter "bash"
code "
git clone git://github.com/kivy/python-for-android
2013-11-26 23:06:45 +01:00
chown -R vagrant:vagrant python-for-android
2013-11-24 23:11:02 +01:00
cd python-for-android
git checkout ca369d774e2
"
not_if "test -d /home/vagrant/python-for-android"
end