From 804cb35a19d14a76f86264d0ef99424e0acdd922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 9 Mar 2024 22:27:57 +0700 Subject: [PATCH] calibre: update to 7.6.0. --- srcpkgs/calibre/patches/python-3.12.patch | 4 ++-- srcpkgs/calibre/template | 17 +++-------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/srcpkgs/calibre/patches/python-3.12.patch b/srcpkgs/calibre/patches/python-3.12.patch index 8c309453a8d80b..f48418f4233401 100644 --- a/srcpkgs/calibre/patches/python-3.12.patch +++ b/srcpkgs/calibre/patches/python-3.12.patch @@ -1,5 +1,5 @@ ---- a/calibre/src/templite/__init__.py -+++ b/calibre/src/templite/__init__.py +--- a/src/templite/__init__.py ++++ b/src/templite/__init__.py @@ -30,7 +30,7 @@ import sys, re from polyglot.builtins import unicode_type diff --git a/srcpkgs/calibre/template b/srcpkgs/calibre/template index dc32b971180dd2..af7ffde580ff95 100644 --- a/srcpkgs/calibre/template +++ b/srcpkgs/calibre/template @@ -1,8 +1,7 @@ # Template file for 'calibre' pkgname=calibre -version=7.3.0 +version=7.6.0 revision=1 -build_wrksrc=calibre build_helper=python3 pycompile_dirs="/usr/lib/calibre/" hostmakedepends="pkg-config cmake python3-BeautifulSoup4 python3-Pillow @@ -33,19 +32,12 @@ maintainer="skmpz " license="GPL-3.0-only" homepage="https://calibre-ebook.com" changelog="https://raw.githubusercontent.com/kovidgoyal/calibre/master/Changelog.txt" -_lover=7.6.4.1 -distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz - https://download.documentfoundation.org/libreoffice/src/${_lover%.*}/libreoffice-dictionaries-${_lover}.tar.xz" -checksum="7c174b5d244930155f40e7eea8ea87ce01d2f1f5d8ab6c79275f35a4a661012a - 36c0526e4c12ab38dd1e1766cd878118dd5692578b80411b9b443e389e3712fa" +distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz" +checksum="7c3da44f01faf76c7a366f7736b510be66dc5e25fd847069a38c2f52f06a2c03" python_version=3 lib32disabled=yes nocross="python3 setup.py gui" -post_extract() { - mv calibre-${version} calibre -} - do_configure() { # Remove unneeded files and libs rm -rf resources/${pkgname}-portable.* @@ -163,8 +155,6 @@ do_build() { python3 setup.py build python3 setup.py gui python3 setup.py kakasi - python3 setup.py hyphenation \ - --path-to-hyphenation "$wrksrc/libreoffice-${_lover}/dictionaries" python3 setup.py liberation_fonts \ --system-liberation_fonts \ --path-to-liberation_fonts /usr/share/fonts/TTF/liberation @@ -176,7 +166,6 @@ do_build() { # python3 setup.py rapydscript # python3 setup.py translations # python3 setup.py resources \ - # --path-to-hyphenation "$wrksrc/libreoffice-${_lover}/dictionaries" \ # --system-liberation_fonts \ # --path-to-liberation_fonts /usr/share/fonts/TTF/liberation \ # --path-to-mathjax /usr/share/mathjax --system-mathjax