From 119307fc2b7669c7cbfccc7f581efa4e5452be0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Sun, 28 Feb 2021 20:08:10 +0100 Subject: [PATCH] python-imagecodecs: update to 2021.2.26 --- mingw-w64-python-imagecodecs/PKGBUILD | 8 +++----- .../imagecodecs-i686.install | 14 -------------- .../imagecodecs-x86_64.install | 14 -------------- 3 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 mingw-w64-python-imagecodecs/imagecodecs-i686.install delete mode 100644 mingw-w64-python-imagecodecs/imagecodecs-x86_64.install diff --git a/mingw-w64-python-imagecodecs/PKGBUILD b/mingw-w64-python-imagecodecs/PKGBUILD index 4f7c71aec3..48c049d081 100644 --- a/mingw-w64-python-imagecodecs/PKGBUILD +++ b/mingw-w64-python-imagecodecs/PKGBUILD @@ -3,7 +3,7 @@ _realname=imagecodecs pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=2021.1.28 +pkgver=2021.2.26 pkgrel=1 pkgdesc='Image transformation, compression, and decompression codecs (mingw-w64)' arch=('any') @@ -28,10 +28,9 @@ depends=("${MINGW_PACKAGE_PREFIX}-blosc" "${MINGW_PACKAGE_PREFIX}-zopfli") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cython") -install=${_realname}-${CARCH}.install options=('staticlibs' 'strip' '!debug') source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cgohlke/imagecodecs/archive/v${pkgver}.tar.gz") -sha256sums=('57e9c32920959099495347528fe9b9a5752da6bc309bc1bf3764c6ff70057059') +sha256sums=('9b9e18b7683a96d9dcf732787c4ca0c948c0059ec7fb61d409a0e5aa792f21fa') prepare() { cd "${srcdir}" @@ -66,7 +65,6 @@ package() { local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX}) # fix python command in files for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.py; do - sed -e "s|/usr/bin/env |${MINGW_PREFIX}|g" \ - -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f} + sed -i 's/\#\!.*//' ${_f} done } diff --git a/mingw-w64-python-imagecodecs/imagecodecs-i686.install b/mingw-w64-python-imagecodecs/imagecodecs-i686.install deleted file mode 100644 index 3087f449f5..0000000000 --- a/mingw-w64-python-imagecodecs/imagecodecs-i686.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw32 - local _prefix=$(pwd -W) - cd - - local _it - for _it in imagecodecs; do - sed -e "s|/mingw32|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -} diff --git a/mingw-w64-python-imagecodecs/imagecodecs-x86_64.install b/mingw-w64-python-imagecodecs/imagecodecs-x86_64.install deleted file mode 100644 index d2bd41b057..0000000000 --- a/mingw-w64-python-imagecodecs/imagecodecs-x86_64.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw64 - local _prefix=$(pwd -W) - cd - - local _it - for _it in imagecodecs; do - sed -e "s|/mingw64|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -}