diff options
author | root <root@rshg054.dnsready.net> | 2012-10-06 00:25:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-06 00:25:32 -0700 |
commit | e7552010f531ef1b114352f0ce71a307360bf1d4 (patch) | |
tree | d37bd67211f2dc084113f36b80f2b4b5b9622aa5 /community/python2-imaging/PKGBUILD | |
parent | 777466db27694f0cad10a7159ba66f2a2b39a516 (diff) |
Sat Oct 6 00:25:32 PDT 2012
Diffstat (limited to 'community/python2-imaging/PKGBUILD')
-rw-r--r-- | community/python2-imaging/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/python2-imaging/PKGBUILD b/community/python2-imaging/PKGBUILD new file mode 100644 index 000000000..d9f5b18f5 --- /dev/null +++ b/community/python2-imaging/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 77148 2012-10-05 14:37:44Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: simo <simo@archlinux.org> + +pkgname=python2-imaging +pkgver=1.1.7 +pkgrel=5 +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' 'lcms') +makedepends=('tk' 'sane') +optdepends=('tk: for the ImageTK module' + 'sane: for the ImageSane module') +provides=("pil=${pkgver}" "python-imaging=${pkgver}") +conflicts=('pil' 'python-imaging') +replaces=('pil' 'python-imaging') +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}" --optimize=1 + + pushd Sane + python2 setup.py install --root="${pkgdir}" --optimize=1 + 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" +} |