[arch-commits] Commit in python-pillow/repos (4 files)
Kyle Keen
kkeen at nymeria.archlinux.org
Sun Feb 2 19:14:20 UTC 2014
Date: Sunday, February 2, 2014 @ 20:14:19
Author: kkeen
Revision: 105205
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-pillow/repos/community-staging-i686/
python-pillow/repos/community-staging-i686/PKGBUILD
(from rev 105204, python-pillow/trunk/PKGBUILD)
python-pillow/repos/community-staging-x86_64/
python-pillow/repos/community-staging-x86_64/PKGBUILD
(from rev 105204, python-pillow/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 72 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 72 ++++++++++++++++++++++++++++++++++++
2 files changed, 144 insertions(+)
Copied: python-pillow/repos/community-staging-i686/PKGBUILD (from rev 105204, python-pillow/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2014-02-02 19:14:19 UTC (rev 105205)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: minder
+
+pkgbase=python-pillow
+pkgname=(python-pillow python2-pillow)
+pkgver=2.3.0
+pkgrel=2
+_appname=Pillow
+_py2basever=2.7
+_py3basever=3.3m
+pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
+arch=('i686' 'x86_64')
+url="http://python-imaging.github.io/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'lcms' 'libwebp' 'tk' 'sane')
+source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip")
+md5sums=('56b6614499aacb7d6b5983c4914daea7')
+
+build() {
+ cd "$srcdir"
+ cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver"
+}
+
+package_python-pillow() {
+ depends=('python' 'lcms' 'libwebp')
+ optdepends=('tk: for the ImageTK module'
+ 'sane: for the Sane module'
+ 'python-pyqt4: for the ImageQt module')
+ cd "$srcdir/$_appname-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=0
+ pushd Sane
+ python3 setup.py install --root="$pkgdir/" --optimize=0
+ popd
+ install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir/usr/include/python$_py3basever/"
+ install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h
+
+ # clean up bins
+ cd "$pkgdir/usr/bin"
+ for f in *.py; do
+ mv "$f" "${f%.py}"
+ done
+}
+
+package_python2-pillow() {
+ pkgdesc="Python Imaging Library (PIL) fork. Python2 version."
+ depends=('python2' 'lcms' 'libwebp')
+ optdepends=('tk: for the ImageTK module'
+ 'sane: for the Sane module'
+ 'python2-pyqt4: for the ImageQt module')
+ provides=('python-imaging' 'python2-imaging')
+ conflicts=('python-imaging' 'python2-imaging')
+ replaces=('python2-imaging')
+ cd "$srcdir/${_appname}2-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+ pushd Sane
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+ popd
+ install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir/usr/include/python$_py2basever/"
+ install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h
+
+ # clean up bins
+ cd "$pkgdir/usr/bin"
+ for f in *.py; do
+ mv "$f" "${f%.py}2"
+ done
+}
+
Copied: python-pillow/repos/community-staging-x86_64/PKGBUILD (from rev 105204, python-pillow/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2014-02-02 19:14:19 UTC (rev 105205)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: minder
+
+pkgbase=python-pillow
+pkgname=(python-pillow python2-pillow)
+pkgver=2.3.0
+pkgrel=2
+_appname=Pillow
+_py2basever=2.7
+_py3basever=3.3m
+pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
+arch=('i686' 'x86_64')
+url="http://python-imaging.github.io/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'lcms' 'libwebp' 'tk' 'sane')
+source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip")
+md5sums=('56b6614499aacb7d6b5983c4914daea7')
+
+build() {
+ cd "$srcdir"
+ cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver"
+}
+
+package_python-pillow() {
+ depends=('python' 'lcms' 'libwebp')
+ optdepends=('tk: for the ImageTK module'
+ 'sane: for the Sane module'
+ 'python-pyqt4: for the ImageQt module')
+ cd "$srcdir/$_appname-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=0
+ pushd Sane
+ python3 setup.py install --root="$pkgdir/" --optimize=0
+ popd
+ install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir/usr/include/python$_py3basever/"
+ install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h
+
+ # clean up bins
+ cd "$pkgdir/usr/bin"
+ for f in *.py; do
+ mv "$f" "${f%.py}"
+ done
+}
+
+package_python2-pillow() {
+ pkgdesc="Python Imaging Library (PIL) fork. Python2 version."
+ depends=('python2' 'lcms' 'libwebp')
+ optdepends=('tk: for the ImageTK module'
+ 'sane: for the Sane module'
+ 'python2-pyqt4: for the ImageQt module')
+ provides=('python-imaging' 'python2-imaging')
+ conflicts=('python-imaging' 'python2-imaging')
+ replaces=('python2-imaging')
+ cd "$srcdir/${_appname}2-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+ pushd Sane
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+ popd
+ install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir/usr/include/python$_py2basever/"
+ install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h
+
+ # clean up bins
+ cd "$pkgdir/usr/bin"
+ for f in *.py; do
+ mv "$f" "${f%.py}2"
+ done
+}
+
More information about the arch-commits
mailing list