From 4f10f31798baf786b5da5985e401efe4ccf997d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Wed, 13 Jan 2021 11:32:04 +0100 Subject: [PATCH] python-imagecodecs: enable lz4f extension --- .../0003-mingw-fix-setup.patch | 10 ++++------ mingw-w64-python-imagecodecs/PKGBUILD | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch b/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch index 1a57443e48..3abcc2a7c4 100644 --- a/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch +++ b/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch @@ -1,21 +1,19 @@ diff -Naur imagecodecs-2021.1.11_orig/setup.py imagecodecs-2021.1.11/setup.py --- imagecodecs-2021.1.11_orig/setup.py 2021-01-12 05:06:22.000000000 +0100 -+++ imagecodecs-2021.1.11/setup.py 2021-01-12 15:05:51.063607600 +0100 -@@ -179,7 +179,7 @@ ++++ imagecodecs-2021.1.11/setup.py 2021-01-13 11:00:22.919158700 +0100 +@@ -179,25 +179,19 @@ """Customize build for common platforms: recent Debian, arch...""" import platform - del EXTENSIONS['avif'] # libavif library not commonly available -+ # del EXTENSIONS['avif'] # libavif library not commonly available del EXTENSIONS['jpeg12'] # jpeg12 requires custom build del EXTENSIONS['lerc'] # LERC library not commonly available - del EXTENSIONS['lz4f'] # requires static linking -@@ -187,17 +187,14 @@ +- del EXTENSIONS['lz4f'] # requires static linking + if 'arch' in platform.platform(): del EXTENSIONS['zopfli'] # zopfli/zopfli.h does not exist else: - del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available -+ # del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available del EXTENSIONS['jpegxl'] # Brunsli library not commonly available del EXTENSIONS['zfp'] # ZFP library not commonly available diff --git a/mingw-w64-python-imagecodecs/PKGBUILD b/mingw-w64-python-imagecodecs/PKGBUILD index d89e8419b5..43d5f474d2 100644 --- a/mingw-w64-python-imagecodecs/PKGBUILD +++ b/mingw-w64-python-imagecodecs/PKGBUILD @@ -33,7 +33,7 @@ source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cgohlke/imagecodecs "0003-mingw-fix-setup.patch") sha256sums=('5a52cf0368055dc9b1f98948deb245e2bbf23b40b74c8a03226a2d9044470754' 'de24ec8970281639f8daf396477c9fbd34a12723c82568cd411247b074729425' - '4ac16ec6fe8e25de4766866ed30f968ae629b6b667ae07ef0e98429f75a32a4b') + '479cb761d694885c156ed4381a6701953ee4f7d792e4ae0f3bb395566c219411') prepare() { cd "${srcdir}"