diff options
Diffstat (limited to 'extra/python-imaging/PKGBUILD')
-rw-r--r-- | extra/python-imaging/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/extra/python-imaging/PKGBUILD b/extra/python-imaging/PKGBUILD new file mode 100644 index 000000000..494b08521 --- /dev/null +++ b/extra/python-imaging/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 110352 2011-02-18 23:00:51Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: simo <simo@archlinux.org> + +pkgname=python-imaging +pkgver=1.1.7 +pkgrel=3 +pkgdesc="PIL. Provides image processing capabilities for python" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.pythonware.com/products/pil/index.htm" +license=('custom:"pil"') +depends=('python2' 'libjpeg' 'freetype2') +makedepends=('tk' 'sane') +optdepends=('tk' 'sane') +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 + cd Sane + python2 setup.py build_ext +} + +package() { + cd $srcdir/Imaging-$pkgver + python2 setup.py install --root=$pkgdir + + pushd Sane + python2 setup.py install --root=$pkgdir + popd + + 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 +} + |