From 43cc2f8bc440048b01c546ea567001cc989b6af3 Mon Sep 17 00:00:00 2001 From: Hud Date: Fri, 23 Feb 2024 10:08:42 +0700 Subject: [PATCH] Install exiftool --- recipes/setup.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/recipes/setup.rb b/recipes/setup.rb index c7d7c571..09f23eef 100644 --- a/recipes/setup.rb +++ b/recipes/setup.rb @@ -421,3 +421,24 @@ # install rsvg-convert tool, for converting and resizing SVG image to PNG apt_package 'librsvg2-bin' + +# Exiftool Installation +exiftool_archive_path = ::File.join(Chef::Config[:file_cache_path], 'Image-ExifTool-12.77.tar.gz') + +remote_file exiftool_archive_path do + source 'https://jiffy-linux-packages.s3.amazonaws.com/Image-ExifTool-12.77.tar.gz' + owner 'root' + group 'root' + mode '0755' +end + +execute 'install exiftool' do + cwd Chef::Config[:file_cache_path] + command <<-EOH + gzip -dc Image-ExifTool-12.77.tar.gz | tar -xf - + cd Image-ExifTool-12.77 + perl Makefile.PL + sudo make install + EOH + action :run +end