summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-imaging/PKGBUILD
blob: d644a4c1697f1a0ef70d3245824d2f374be0df78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 87626 2010-08-17 13:21:07Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: simo <simo@archlinux.org>

pkgname=python-imaging
pkgver=1.1.7
pkgrel=6
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=('python2' 'libjpeg' 'freetype2') 
makedepends=('tk')
optdepends=('tk')
provides=("pil=$pkgver")
conflicts=('pil')
replaces=('pil')
source=(http://effbot.org/downloads/Imaging-$pkgver.tar.gz)
md5sums=('fc14a54e1ce02a0225be8854bfba478e')

build() {
  cd $srcdir/Imaging-$pkgver
  python2 setup.py build_ext
}

package() {
  cd $srcdir/Imaging-$pkgver
  python2 setup.py install --root=$pkgdir
  install -dm755 $pkgdir/usr/include/python2.6/
  install -m644 -t $pkgdir/usr/include/python2.6/ 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
}