Date: Monday, January 2, 2023 @ 22:45:42
  Author: foutrelis
Revision: 1374060

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pillow/repos/community-staging-x86_64/
  python-pillow/repos/community-staging-x86_64/PKGBUILD
    (from rev 1374059, python-pillow/trunk/PKGBUILD)

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

Copied: python-pillow/repos/community-staging-x86_64/PKGBUILD (from rev 
1374059, python-pillow/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-01-02 22:45:42 UTC (rev 1374060)
@@ -0,0 +1,73 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: minder
+
+pkgname=python-pillow
+pkgver=9.4.0
+pkgrel=2
+pkgdesc='Python Imaging Library (PIL) fork'
+arch=('x86_64')
+url='https://python-pillow.org'
+license=('BSD')
+depends=(
+  'python'
+  'freetype2'
+  'lcms2'
+  'libraqm'
+  'libtiff'
+  'openjpeg2'
+  'libimagequant'
+  'libxcb'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+  'libwebp'
+  'tk'
+)
+checkdepends=('python-pytest')
+optdepends=(
+  'libwebp: for webp images'
+  'tk: for the ImageTK module'
+  'python-olefile: OLE2 file support'
+  'python-pyqt5: for the ImageQt module'
+)
+_commit='a5bbab1c1e63b439de191ef2040173713b26d2da'
+source=("$pkgname::git+https://github.com/python-pillow/Pillow#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+  export PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version"
+  python selftest.py
+  pytest -v
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+  install -vDm644 -t "$pkgdir/usr/include/python$python_version" 
src/libImaging/*.h
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to