From 0cbedf483fc72cc788c1a0040cc7ccaaa3e424d7 Mon Sep 17 00:00:00 2001 From: Lilac Date: Wed, 12 Jul 2023 07:01:15 +0000 Subject: [PATCH] mcomix: auto updated to 2.2.0-1 --- repo/mcomix/01-pillow_version.patch | 15 --------------- repo/mcomix/PKGBUILD | 15 ++++----------- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 repo/mcomix/01-pillow_version.patch diff --git a/repo/mcomix/01-pillow_version.patch b/repo/mcomix/01-pillow_version.patch deleted file mode 100644 index ce0bef0..0000000 --- a/repo/mcomix/01-pillow_version.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- mcomix/run.py.orig 2023-07-03 21:39:35.146479272 +0300 -+++ mcomix/run.py 2023-07-03 21:40:16.742507561 +0300 -@@ -122,7 +122,11 @@ - try: - import PIL.Image - -- if PIL.__version__ < '6.0.0': -+ try: -+ pil_major_version = int(PIL.__version__[0:PIL.__version__.index('.')]) -+ except (ValueError, IndexError): -+ pil_major_version = 0 -+ if pil_major_version < 6: - log.error( _("You don't have the required version of the Python Imaging Library Fork (Pillow) installed.")) - log.error( _('Installed Pillow version is: %s') % PIL.__version__ ) - log.error( _('Required Pillow version is: 6.0.0 or higher') ) diff --git a/repo/mcomix/PKGBUILD b/repo/mcomix/PKGBUILD index 71a2483..773ba58 100644 --- a/repo/mcomix/PKGBUILD +++ b/repo/mcomix/PKGBUILD @@ -3,8 +3,8 @@ pkgname=mcomix # Might want to move to date-based versions. -pkgver=2.1.1 -pkgrel=2 +pkgver=2.2.0 +pkgrel=1 pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books" arch=('any') url="https://sourceforge.net/p/mcomix/wiki/Home/" @@ -14,22 +14,15 @@ makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel optdepends=( 'lhasa: for lha compressed comics' 'libunrar: for rar compressed comics' - 'mupdf-tools: for PDF comics' 'p7zip: for 7z compressed comics' + 'python-pymupdf: for PDF comics' 'unrar: for rar compressed comics' 'unzip: for zip compressed comics' ) source=( "https://downloads.sourceforge.net/project/${pkgname}/MComix-${pkgver}/${pkgname}-${pkgver}.tar.gz" - "01-pillow_version.patch" ) -sha256sums=('3faa22ca77392c9496e686706193219c8d2435c213ed52ae69212e0def7060d5' - '11964ff2ba788bcff91c7b1188c7d64f45ca139968b9ff7578eeda15430d9464') - -prepare() { - cd "${pkgname}-${pkgver}" - patch -p0 < "$srcdir/01-pillow_version.patch" -} +sha256sums=('514843e27c0e3b05f1ac11169eab3613a2c295158f09054d817adf58affb9ba3') build() { cd "${pkgname}-${pkgver}"