diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-06 03:45:44 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-06 03:45:44 (GMT) |
commit | 686ed2c93de3349ed9a366fe2eeca2c3d5e348af (patch) | |
tree | 9be73e56ac5c78b310de8c752e96f075451e0cec /abs/extra/python-imaging/PKGBUILD | |
parent | fb30f30c19daaa05638b82ee312485b40289ded7 (diff) | |
download | linhes_pkgbuild-686ed2c93de3349ed9a366fe2eeca2c3d5e348af.zip linhes_pkgbuild-686ed2c93de3349ed9a366fe2eeca2c3d5e348af.tar.gz linhes_pkgbuild-686ed2c93de3349ed9a366fe2eeca2c3d5e348af.tar.bz2 |
python-imaging: inital include
Diffstat (limited to 'abs/extra/python-imaging/PKGBUILD')
-rw-r--r-- | abs/extra/python-imaging/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/extra/python-imaging/PKGBUILD b/abs/extra/python-imaging/PKGBUILD new file mode 100644 index 0000000..e469a94 --- /dev/null +++ b/abs/extra/python-imaging/PKGBUILD @@ -0,0 +1,40 @@ +# $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=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=('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.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 +} |