- package: tis-calibre
- name: calibre
- version: 8.7.0-16
- categories: Office,Utilities,Media
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- editor: Kovid Goyal
- licence: GPLv3
- locale: all
- target_os: debian(>=12),ubuntu(>=22)
- impacted_process: calibre,ebook-viewer,lrfviewer
- architecture: x64
- signature_date:
- size: 191.05 Mo
- homepage : https://calibre-ebook.com
package : tis-calibre
version : 8.7.0-16
architecture : x64
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(>=12),ubuntu(>=22)
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 : Calibre (stylizowany na calibre) to wieloplatformowy, open-source’owy pakiet oprogramowania do obsługi książek elektronicznych
description_de : Calibre (stilisiert als Calibre) ist eine plattformübergreifende Open-Source-Software für E-Books
description_es : Calibre (estilizado como calibre) es una suite de software de libros electrónicos de código abierto y multiplataforma
description_pt : Calibre (calibre estilizado) é um conjunto de software de código-fonte aberto de código aberto para várias plataformas de livros electrónicos
description_it : Calibre (stilizzato calibre) è una suite open-source multipiattaforma di software per libri elettronici
description_nl : Calibre (gestileerd calibre) is een cross-platform open-source suite van e-boek software
description_ru : Calibre (стилизованный calibre) - это кроссплатформенный пакет программного обеспечения для электронных книг с открытым исходным кодом
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 : 4a10679e-1fcd-4b04-86ce-e103ee0ce13a
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_date : 2025-07-23T05:00:21.000000
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
signature : wBpiXjhlFGbRr+IEjm59a46/VNhPHz6cYRwYjL4tepkIpv/pzukHpYrrssV6k8Kgo5VHR0ryvR6inAqtCUgDcoGjc2HRP2FgLh+oAtRyr0mlUeC+/OswxAEwtr30lHp3BKlYtiAcoA0yG+5tH+g2dukCJ1aUGyU8vaOoo/7o2kwFUykjqXcaYASjLSdTfVJBud4YB2e4mp/1tdvpduwjG/xiNKOd0snl41YEo5/g6IZHDk7dp3tZ9dTdhk/+ulUVZqKM83v7Buibmn/EITYKjdWWoPo1EXDXPJ3K3yEutTjaU976HsXzimfBRUydZE+8yJ6iZbPJBqCO4tdWRf4qYw==
# -*- coding: utf-8 -*-
from setuphelpers import *
"""
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
bin_contains = "calibre"
def install():
# Declaring local variables
bin_name = glob.glob("*%s*.txz" % bin_contains)[0]
install_apt('gettext libgl1-mesa-dev libxkbcommon-dev libxkbcommon-x11-dev libfontconfig1 libxcb-cursor-dev')
# Installing the package
run("mkdir -p /opt/calibre && rm -rf /opt/calibre/* && tar xvf %s -C /opt/calibre && /opt/calibre/calibre_postinstall" % bin_name)
def uninstall():
# Uninstalling the package
remove_tree('/opt/calibre')
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
api_url = "https://api.github.com/repos/kovidgoyal/calibre/releases/latest"
# Getting latest version information from official sources
print("API used is: %s" % api_url)
json_load = json.loads(wgets(api_url, proxies=proxies))
for download in json_load["assets"]:
if "x86_64.txz" in download["name"]:
download_url = download["browser_download_url"]
version = json_load["tag_name"].split("-")[-1].replace("v", "")
latest_bin = download["name"]
break
# Downloading latest binaries
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
# 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)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
e8975970fb369a935604e9342800f6ddb0bec2886213d95f319f751f6d5042ba : WAPT/changelog.txt
65ac7c24c51a1d4a84255a1628587b144f67244e0326c1c8d3e07037f41dd00b : WAPT/control
4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86 : WAPT/icon.png
4e5e9026640401b6dc377dd176dea54c39ae64e4faaabdd9ecda6184a60bf023 : calibre-8.7.0-x86_64.txz
754516e5efa7f0e0f6526aa9af4c5a53ff6d536dd62a152cde1b06a596fc2bdf : luti.json
4421fe17a1a74184656d1e26d03117535172317144baf32635da7a071fc67969 : setup.py
567dd5d2c9ff72d0233bea16f353aff884a84a2132e45c90f45f07ce71177d92 : update_package.py
https://calibre-ebook.com/whats-new
6.3.0
===
improve code