tis-calibre icon

calibre

Silent install package for calibre

5.43.0-13
Office
Utilities
Media
Office
Utilities
Media

  • package: tis-calibre
  • name: calibre
  • version: 5.43.0-13
  • categories: Office,Utilities,Media
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Kovid Goyal
  • licence: GPLv3
  • locale: all
  • target_os: debian_based
  • impacted_process: calibre,ebook-viewer,lrfviewer
  • architecture: all
  • signature_date:
  • size: 9.55 Ko
  • homepage : https://calibre-ebook.com

package           : tis-calibre
version           : 5.43.0-13
architecture      : all
section           : base
priority          : optional
name              : calibre
categories        : Office,Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Calibre (stylised calibre) is a cross-platform open-source suite of e-book software
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian_based
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : calibre,ebook-viewer,lrfviewer
description_fr    : calibre est un gestionnaire de bibliothèques numériques permettant la visualisation, la conversion, le catalogage et l'édition de livres numériques
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Kovid Goyal
keywords          : e-book,ebook,book,reader,word,processor,calibre,e-readers,ereaders,epub,azw3,mobi
licence           : GPLv3
homepage          : https://calibre-ebook.com
package_uuid      : f539a71a-d254-4f74-9e14-1fe5a4a7fc83
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://calibre-ebook.com/whats-new
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Uc7ThjHxStNThq2Mj7BQN6w5MALt4JC3SMAEmuIIOnqY2vB1qPYhEgMR+rb4ZB62SR3lYa4o9C6N8WsgIfztBdRo2xLuMN2w+m129MjPaUCOgwkGt54BqwhoDsXVzEmqk3CWf+voqiYn5409Dt2SSHJQwGfvDCFfBaqTS1moEnNOb/WFrZ7WBjM7I/8DP0jY3RvKNbGi9DMu8a5qckMQa9TfctSxW7LGwVH1+Vjj9sRv+2BIIAkFKLqDHf8974tC3ZYHtpBP875pzOhijL77eAZwWDfVXKHN37ZfWq5QZ3fvmBEvtvtZqpa5gDyMBHivpgpKXhYFQcGFLe0az6CSBw==
signature_date    : 2022-06-01T13:07:00.611950
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *
import re

"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

https://calibre-ebook.com/download_linux

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
package_name = 'calibre'


def install():
    # Declaring local variables
    package_version = control.get_software_version()

    # Installing the package
    uninstall_apt(package_name)
    print("Installing: %s" % package_name)
    run('wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin version=%s' % package_version,timeout=1200)
    run('chmod +x calibre-uninstall')
    run('cp -f calibre-uninstall /usr/bin/calibre-uninstall')


def uninstall():
    # Uninstalling the package
    print("Uninstalling: %s" % package_name)
    run('/bin/sh /usr/bin/calibre-uninstall')


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = 'https://calibre-ebook.com/download_linux'

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url,'p', proxies=proxies):
        if 'The latest release of calibre' in str(bs_search):
            version = re.search('is (.+?). ', str(bs_search).split('\n')[1]).group(1)
            break

    print("Latest %s version is: %s" % (app_name, version))

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
    #control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

fa7ee03fc6106d3a99a4923cecc49909a3a3386e92374662dda9364444936cac : setup.py
bfea93ad112b8433ea7ec30d4fa91de8174e4d1efcedeab8b5019e99676845f7 : calibre-uninstall
4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
da620469056b5b8a568b49238c34359155bd0053eb7baa3dca34285d060635ae : luti.json
bdb8cdc9eae82b5b00d35b0beebf69117a173d64c39224c2ebb4a7518274113e : WAPT/control