Skip to content

Instantly share code, notes, and snippets.

@revelation
Created February 19, 2009 18:08
Show Gist options
  • Save revelation/67033 to your computer and use it in GitHub Desktop.
Save revelation/67033 to your computer and use it in GitHub Desktop.
apt_package "unzip" do
action :install
end
remote_file "/tmp/FreeImage.zip" do
source "http://downloads.sourceforge.net/freeimage/FreeImage3110.zip"
end
bash "unzip freeimage" do
user "root"
cwd "/tmp"
code <<-EOH
if [ ! -d /tmp/FreeImage ]; then
unzip FreeImage.zip
fi
EOH
end
bash "compile freeimage" do
user "root"
cwd "/tmp/FreeImage"
code <<-EOH
make
EOH
end
bash "install freeimage" do
user "root"
cwd "/tmp/FreeImage"
code <<-EOH
make install
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment