pkg:setup rm_rf "bat" prefix.install %w[LICENSE NOTICE README] libexec.install Dir["*"] Dir.glob("#{libexec}/bin/*") do |path| bin_name = File.basename(path) (bin/bin_name).write shim_script(bin_name)