stapel/omnibus/config/software/diffutils.rb

Summary

Maintainability
A
15 mins
Test Coverage
name 'diffutils'
default_version '3.8'

license 'GPL-3.0'
license_file 'COPYING'

version('3.8') { source md5: '6a6b0fdc72acfe3f2829aab477876fbc' }
version('3.5') { source md5: '569354697ff1cfc9a9de3781361015fa' }
version('3.6') { source md5: '07cf286672ced26fba54cd0313bdc071' }

#source url: "https://ftp.gnu.org/gnu/diffutils/diffutils-#{version}.tar.xz"
source url: "https://mirror.tochlab.net/pub/gnu/diffutils/diffutils-#{version}.tar.xz"

relative_path "diffutils-#{version}"

build do
  env = with_standard_compiler_flags(with_embedded_path)

  command "./configure --prefix=#{install_dir}/embedded", env: env
  command "make -j #{workers}", env: env
  command 'make install', env: env
end