core/python-imaging/PKGBUILD
Jan Mette 93d9bd24fe
2010-03-14 15:48:48 +00:00

33 lines
956 B
Bash

# $Id: PKGBUILD 66451 2010-01-31 09:26:49Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: simo <simo@archlinux.org>
pkgname=python-imaging
pkgver=1.1.7
pkgrel=1
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')
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
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
# Install license
install -Dm644 $srcdir/Imaging-$pkgver/README \
$pkgdir/usr/share/licenses/$pkgname/README
}