summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichal Wojdyla2020-09-11 19:29:20 +0200
committerMichal Wojdyla2020-09-11 19:29:20 +0200
commita7f943dd5b4e71577763ef4d9360b34b5aa3b66f (patch)
treedd1192575c1913b13a174c7b2bf1ac791a09aa09 /PKGBUILD
parent32838ae32cbf81d82616bd48f10d5f9ce6d875b3 (diff)
downloadaur-python-pillow-git.tar.gz
update based on official package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 35 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f60f2d7c882e..5f1402d18966 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,47 @@
-# Maintainer: Kwpolska <kwpolska@kwpolska.tk>
+# Contributor: Michal Wojdyla < micwoj9292 at gmail dot com >
+# Contributor: Kwpolska <kwpolska@kwpolska.tk>
pkgname=python-pillow-git
-_pyname=Pillow
-pkgver=1.7.6.r1267.gbed2e42
+pkgver=7.2.0.r319.g7e06a91c
pkgrel=1
-pkgdesc='Python Imaging Library (PIL) fork. (git, Python 3)'
-arch=('any')
-url='https://github.com/python-imaging/Pillow'
-license=('custom:PIL')
-depends=('python')
-makedepends=('git')
+_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' 'libxcb')
+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' 'git')
options=(!emptydirs)
-provides=('python3-imaging')
-conflicts=('python3-imaging')
-source=('git://github.com/python-imaging/Pillow.git')
+provides=('python-pillow')
+conflicts=('python-pillow')
+source=('git+https://github.com/python-pillow/Pillow.git')
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/Pillow"
- git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+ cd "$_appname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_appname"
+ python setup.py build
}
package() {
- cd "$srcdir/Pillow"
- python setup.py install --root="${pkgdir}/" --optimize=1
+ cd "$srcdir/$_appname"
+ 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
}
-# vim:set ts=2 sw=2 et:
+