1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Maintainer: Kyle Keen <keenerd@gmail.com>
8 pkgdesc='Python Imaging Library (PIL) fork'
10 url='https://python-pillow.org'
31 checkdepends=('python-pytest')
33 'libwebp: for webp images'
34 'tk: for the ImageTK module'
35 'python-olefile: OLE2 file support'
36 'python-pyqt5: for the ImageQt module'
38 _commit='204590600c6a8c5246d0564d3312abd6e6b0ed70'
39 source=("$pkgname::git+https://github.com/python-pillow/Pillow#commit=$_commit")
45 git describe --tags | sed 's/^v//'
51 python -m build --wheel --no-isolation
57 local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
58 export PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version"
66 python -m installer --destdir="$pkgdir" dist/*.whl
68 local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
69 install -vDm644 -t "$pkgdir/usr/include/python$python_version" src/libImaging/*.h
72 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE