Date: Monday, June 15, 2020 @ 22:14:06 Author: kkeen Revision: 645580
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 645579, python-pillow/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: python-pillow/repos/community-staging-x86_64/PKGBUILD (from rev 645579, python-pillow/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-15 22:14:06 UTC (rev 645580) @@ -0,0 +1,50 @@ +# Maintainer: Kyle Keen <keen...@gmail.com> +# Contributor: minder + +pkgname=python-pillow +pkgver=7.1.2 +pkgrel=1 +_appname=Pillow +_py3basever=3.8 +pkgdesc="Python Imaging Library (PIL) fork." +arch=('x86_64') +url="https://python-pillow.github.io/" +license=('BSD') +depends=('python' 'lcms2' 'libtiff' 'openjpeg2' 'libimagequant') +optdepends=('freetype2: for the ImageFont module' + 'libraqm: for complex text scripts' + 'libwebp: for webp images' + 'tk: for the ImageTK module' + 'python-olefile: OLE2 file support' + 'python-pyqt5: for the ImageQt module') +makedepends=('python-setuptools' 'freetype2' 'libraqm' 'libwebp' 'tk') +checkdepends=('python-pytest') +source=("https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$pkgver.tar.gz") +md5sums=('f1f7592c51260e5080d3cd71781ea675') + +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 -k 'not test_complex_unicode_text and not TestImageFont' +} + +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 +} +