[arch-commits] Commit in python-pillow/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 21:42:29 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:42:29
  Author: felixonmars
Revision: 1058947

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 1058942, python-pillow/trunk/PKGBUILD)

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

Copied: python-pillow/repos/community-staging-x86_64/PKGBUILD (from rev 1058942, python-pillow/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 21:42:29 UTC (rev 1058947)
@@ -0,0 +1,47 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: minder
+
+pkgname=python-pillow
+pkgver=8.4.0
+pkgrel=2
+_appname=Pillow
+_py3basever=3.10
+pkgdesc="Python Imaging Library (PIL) fork."
+arch=('x86_64')
+url="https://python-pillow.github.io/"
+license=('BSD')
+depends=('python' 'freetype2' 'lcms2' 'libraqm' 'libtiff' 'openjpeg2' 'libimagequant' 'libxcb')
+optdepends=('libwebp: for webp images'
+            'tk: for the ImageTK module'
+            'python-olefile: OLE2 file support'
+            'python-pyqt5: for the ImageQt module')
+makedepends=('python-setuptools' 'libwebp' 'tk')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$pkgver.tar.gz")
+md5sums=('7a1eb5a250c7ccbd549a89e16404f09f')
+
+prepare() {
+  cd "$srcdir/$_appname-$pkgver"
+}
+
+build() {
+  cd "$srcdir/$_appname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir/$_appname-$pkgver"
+
+  export PYTHONPATH="$PWD/build/lib.linux-$CARCH-${_py3basever%m}"
+  python selftest.py
+  pytest
+}
+
+package() {
+  cd "$srcdir/$_appname-$pkgver"
+  python3 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  install -dm755 "$pkgdir/usr/include/python$_py3basever/"
+  install -m644 -t "$pkgdir/usr/include/python$_py3basever/" src/libImaging/*.h
+}



More information about the arch-commits mailing list