calibre
Paquet d’installation silencieuse pour calibre
5.44.0-13
Office
Utilities
Media
Office
Utilities
Media
- package: tis-calibre
- name: calibre
- version: 5.44.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.44.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 : 7410030e-ee5d-4d1f-89bb-379f65d153a8
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 : vrs1FvBJkQ0fe6o/jh98tojRHqy4AZkDq9oObtMQoLkoMpYjGzAbgqnTNRKKjC0wEZUYuZJL/7GSdxlci0zkRHrYEb/41h5h+UUMt8SEU6DsyjCXTerYlKpxesitOoycGBrsQXfTkIzVXvpfjkBaFQiRBaFUcSVvyFvCZsMcCRSv53lugfmuTFAsaRbNKL+JXGeF3QIpyZ6/0hab1n/mN+Q9d10y6Ct7EUsxRaiv+8YBACw5gYMb3LvBN9t2DxykBxQwHPB9xCFHWaWxtLXV9KqqJgrhe2NggvMpfxEGOM0sKUMxy71oIBM0Y5/UqLZKwOBPjTbbl6JxWxSEV97FbA==
signature_date : 2022-06-22T09:02:24.043254
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
10d6bcdf11c7e658d581962c234f71514da9faea3553852cc7eacbd714e9edbe : luti.json
183b4eac16140139f999a1d65ccaa0a35956a8e5c75ec17a7c40a61b66649f5d : WAPT/control