summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/pil/PKGBUILD
blob: f16214af2e4c997f396c805e3a58053384987f06 (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
# $Id: PKGBUILD 16703 2008-10-22 02:31:25Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: simo <simo@archlinux.org>

pkgname=pil
pkgver=1.1.6
pkgrel=9
pkgdesc="Python imaging library"
arch=('i686' 'x86_64')
url="http://www.pythonware.com/products/pil/index.htm"
license=('custom:"pil"')
depends=('python' 'libjpeg6' 'freetype2') 
makedepends=('tk>=8.5.0')
source=(http://effbot.org/downloads/Imaging-$pkgver.tar.gz)
md5sums=('3a9b5c20ca52f0a9900512d2c7347622')

build() {
  cd $srcdir/Imaging-$pkgver
  sed -i "s#JPEG_ROOT\ =\ None#JPEG_ROOT\ =\ \"/opt/libjpeg6\"#" setup.py
  python setup.py build_ext 
  python setup.py install --root=$pkgdir
  mkdir -p $pkgdir/usr/include/python2.6/
  cp libImaging/*.h $pkgdir/usr/include/python2.6/

  # Install license
  install -m644 -D $srcdir/Imaging-$pkgver/README \
                   $pkgdir/usr/share/licenses/pil/README
}