<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>${title}</title>
    <style type="text/css">
        table tr th.distro_type { 
            font-family: monospace;
            font-weight: bold;
            font-size: larger;
            vertical-align:middle;
            text-align: center;
            border-bottom: solid 1pt black;
         }
        
        .right {
            margin-left:2em;
            border-left: solid 1pt black;
            }
        
        table#install_info {
            border-collapse: collapse;
            border-width: 1pt;
            border-style: solid;
            table-layout: fixed;
            width: 95%;
            background: #F7F7F0 none repeat scroll 0 0;
        }
        table#dependencies {
            border-collapse: collapse;
            border-width: 0pt;
            font-family:monospace;
        }
        .tdata {vertical-align: top;}
    </style>
  </head>

  <body>
    <div id="ctxtnav" class="nav"></div>
    <div id="content" class="download">
        <h1>${title}</h1>
        <p>
            The latest release of ${app} is ${version}. See the 
            <a href="/wiki/Changelog">Changelog</a> for a list of new features.
        </p>
        <p>
            ${app} is available in the software repositories of the following 
            supported linux distributions:
            <table id="install_info">
                <col width="150" /><col width="*" />
                <tr>
                    <th class="left distro_type">Supported<br/>distributions</th>
                    <th class="right distro_type">Unsupported distributions</th>
                </tr>
                <tr class="tdata">
                    <td class="left" style="overflow-y:scroll">
                        <div py:for="distro in supported" 
                        style="text-align:center;margin-top:2ex;">
                            <div>
                                <img width="64px" height="64px" 
                                    src="${distro.img}" alt="${distro.title}" />
                            </div>
                            ${distro.title}
                        </div>
                    </td>
                    <td class="right">
                        <div style="margin-left:2em">
                            <h3>Binary install</h3>
                            <p>
                                ${app} has a binary installer that has been 
                                tested on a number of distributions on both 
                                32-bit and 64-bit x86 machines. To install, 
                                copy paste the following command into a terminal 
                                and press Enter: 
                            </p>
                            <pre class="wiki">
sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"
                            </pre>
                            <h4>Note</h4>
                            <ul>
                                <li>
                                    When running the command line utilities,
                                    they will segfault after completion. This can
                                    be ignored.
                                </li>
                                <li>
                                    You must have xdg-utils installed 
                                    on your system before running the installer.
                                </li>
                            </ul>
                            <h3>Source install</h3>
                            <p>
                                <ol>
                                    <li>
                                        Make sure your system has python &ge; ${dependencies[0][1]}
                                    </li>
                                    <li>
                                        Install the various dependencies listed below
                                    </li>
                                    <li>
                                        Run the following commands in a terminal:
                                    </li>
                                </ol>
                                <pre class="wiki">
wget -O- http://calibre.kovidgoyal.net/downloads/${app}-${version}.tar.gz | tar xvz 
cd calibre*
sudo python setup.py install
                                </pre>
                                Note that if your distribution does not have a
                                correctly compiled libunrar.so, ${app} will not 
                                support rar files. The calibre_postinstall step 
                                is required for device detection and integration
                                with your desktop environment.
                            </p>
                        </div>
                    </td>
                </tr>
            </table>
        </p>
        <p>
            While you wait for the download to complete, please consider 
            donating to support the development of ${app}.
        </p>
      <div>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_s-xclick" />
            <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
            <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
            <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBn7jneGiSLVO8rcDrBtOUXL+Hft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oIGuIsAfQkYO9mw/HjtDtOQHqXyZZbrM32YGtNWUD4ynakLYnaz7OnPl40aTPD4iDApgsGcj1oMdmw7KA2E9J0l2J9iJXF4=-----END PKCS7-----" />
        </form>
      </div>
      <hr/>
      <h3>Note</h3>
      <p>
        If your kernel is compiled with CONFIG_SYSFS_DEPRECATED device detection may not work.
      </p>
      <hr/>
      <h3>Dependencies</h3>
      ${app} has the following dependencies (the listed version is the minimum version)
      <br/><br/>
      <table id="dependencies">
          <tr>
              <th class="distro_type" style="margin-right:2em">Package</th>
              <th class="distro_type">Version</th>
          </tr>
              
          <tr class="dependency" py:for="dep in dependencies">
              <td style="margin-right:2em">${dep[0]}</td><td>${dep[1]}</td>
          </tr>
      </table>    
    </div>
  </body>
</html>
