1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-30 04:10:42 +02:00
fpm/templates/deb.erb
Jordan Sissel 032c3c56e4 - Add installed-size
- thin out some older and unused conditions
2012-03-08 13:30:59 -08:00

33 lines
1.1 KiB
Plaintext

Package: <%= name %>
Version: <%= "#{epoch}:" if epoch %><%= version %><%= "-" + iteration.to_s if iteration %>
License: <%= license %>
Vendor: <%= vendor %>
Architecture: <%= architecture %>
Maintainer: <%= maintainer %>
Installed-Size: <%= attributes[:deb_installed_size] %>
<% if !dependencies.empty? -%>
Depends: <%= dependencies.join(", ") %>
<% end -%>
<% if !conflicts.empty? -%>
Conflicts: <%= conflicts.join(", ") %>
<% end -%>
<%# if !pre_dependencies.empty? -%>
<%# properpredeps = pre_dependencies.collect { |d| fix_dependency(d) }.flatten -%>
#Pre-Depends: <%#= properpredeps.flatten.join(", ") %>
<%# end -%>
<% if !provides.empty? -%>
Provides: <%= provides.join(", ") %>
<% end -%>
<% if !replaces.empty? -%>
Replaces: <%= replaces.join(", ") %>
<% end -%>
Section: <%= category %>
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 -%>