[arch-commits] Commit in python-imaging/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Tue Aug 17 09:21:09 EDT 2010


    Date: Tuesday, August 17, 2010 @ 09:21:07
  Author: allan
Revision: 87626

upgpkg: python-imaging 1.1.7-2
-m

Modified:
  python-imaging/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-17 13:13:45 UTC (rev 87625)
+++ PKGBUILD	2010-08-17 13:21:07 UTC (rev 87626)
@@ -4,12 +4,12 @@
 
 pkgname=python-imaging
 pkgver=1.1.7
-pkgrel=1
+pkgrel=2
 pkgdesc="PIL. Provides image processing capabilities for python"
 arch=('i686' 'x86_64')
 url="http://www.pythonware.com/products/pil/index.htm"
 license=('custom:"pil"')
-depends=('python' 'libjpeg' 'freetype2') 
+depends=('python2' 'libjpeg' 'freetype2') 
 makedepends=('tk')
 optdepends=('tk')
 provides=("pil=$pkgver")
@@ -20,11 +20,20 @@
 
 build() {
   cd $srcdir/Imaging-$pkgver
-  python setup.py build_ext 
-  python setup.py install --root=$pkgdir
-  install -dm755 $pkgdir/usr/include/python2.6/
-  install -m644 -t $pkgdir/usr/include/python2.6/ libImaging/*.h 
+  python2 setup.py build_ext
+}
 
+package() {
+  cd $srcdir/Imaging-$pkgver
+  python2 setup.py install --root=$pkgdir
+  install -dm755 $pkgdir/usr/include/python2.7/
+  install -m644 -t $pkgdir/usr/include/python2.7/ libImaging/*.h 
+
+  # do not have files ending in .py in /usr/bin
+  for f in pildriver pilprint pilconvert pilfile pilfont; do
+    mv $pkgdir/usr/bin/$f{.py,}
+  done
+
   # Install license
   install -Dm644 $srcdir/Imaging-$pkgver/README \
                  $pkgdir/usr/share/licenses/$pkgname/README



More information about the arch-commits mailing list