1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-26 03:34:35 +02:00
fpm/templates/deb.erb
2011-07-26 19:18:25 +02:00

33 lines
1.2 KiB
Plaintext

Package: <%= name %>
Version: <%= "#{epoch}:" if epoch %><%= version %><%= iteration && '-'+iteration.to_s %>
Architecture: <%= architecture %>
Maintainer: <%= maintainer or "<unknown>" %>
<% if !dependencies.empty? -%>
<% properdeps = dependencies.collect { |d| fix_dependency(d) }.flatten -%>
Depends: <%= properdeps.flatten.join(", ") %>
<% end -%>
<% if !pre_dependencies.empty? -%>
<% properpredeps = pre_dependencies.collect { |d| fix_dependency(d) }.flatten -%>
Pre-Depends: <%= properpredeps.flatten.join(", ") %>
<% end -%>
<% if !conflicts.empty? -%>
Conflicts: <%= conflicts.join(", ") %>
<% end -%>
<% if !provides.empty? -%>
Provides: <%= provides.join(", ") %>
<% end -%>
<% if !replaces.empty? -%>
<% properrepl = replaces.collect { |d| fix_dependency(d) }.flatten -%>
Replaces: <%= properrepl.flatten.join(", ") %>
<% end -%>
Standards-Version: 3.9.1
Section: <%= category or "unknown" %>
Priority: extra
Homepage: <%= url or "http://nourlgiven.example.com/" %>
<% lines = (description or "no description given").split("\n") -%>
<% firstline, *remainder = lines -%>
Description: <%= firstline %>
<% if remainder.any? -%>
<%= remainder.collect { |l| l =~ /^ *$/ ? " ." : " #{l}" }.join("\n") %>
<% end -%>