blob: 2930d793847338ad79f20fb35b762e7877544e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_name=imagecodecs
pkgname=python-imagecodecs
pkgver=2026.1.14
pkgrel=1
pkgdesc='Image transformation, compression, and decompression codecs'
arch=('x86_64')
url='https://github.com/cgohlke/imagecodecs'
license=('BSD-3-Clause')
depends=(
blosc
blosc2
brotli
brunsli
bzip2
charls
giflib
glibc
jxrlib
lcms2
lerc
libaec
libavif
libdeflate
libheif
libjpeg-turbo
libjxl
libpng
libtiff
libwebp
lz4
lzfse
openjpeg2
python-numpy
python-pillow
snappy
xz
zfp
zlib
zlib-ng
zopfli
zstd
)
makedepends=(
cython
python-build
python-installer
python-setuptools
python-wheel
)
source=("${_name}-${pkgver}.tar.gz::https://github.com/cgohlke/imagecodecs/archive/v${pkgver}.tar.gz"
)
sha256sums=('91c4eb450a3e589ae3f8251c6b8cdc6c09f6c2f21237beee79f424df0af3954e')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:ts=2:sw=2:et:
|