[arch-commits] Commit in python-pillow/repos (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Tue Jan 4 21:41:01 UTC 2022
Date: Tuesday, January 4, 2022 @ 21:41:00
Author: arojas
Revision: 1093096
archrelease: copy trunk to community-testing-x86_64
Added:
python-pillow/repos/community-testing-x86_64/
python-pillow/repos/community-testing-x86_64/PKGBUILD
(from rev 1093095, python-pillow/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-pillow/repos/community-testing-x86_64/PKGBUILD (from rev 1093095, python-pillow/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-01-04 21:41:00 UTC (rev 1093096)
@@ -0,0 +1,47 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: minder
+
+pkgname=python-pillow
+pkgver=9.0.0
+pkgrel=1
+_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=('c5af6e413d2fe9247cf16ce25c816b14')
+
+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