python-imagecodecs: update to 2021.2.26

This commit is contained in:
Miloš Komarčević
2021-02-28 20:08:10 +01:00
parent dfb93cba30
commit 119307fc2b
3 changed files with 3 additions and 33 deletions

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}