diff options
author | Anish Bhatt | 2013-10-07 14:33:50 -0700 |
---|---|---|
committer | Anish Bhatt | 2013-10-07 14:33:50 -0700 |
commit | 85af07eb8fd44990bf1b1d619032555783378480 (patch) | |
tree | c829d62b2f8937ea35cf449d297c2bf9db22bd32 /PKGBUILD | |
parent | cf58320614485e584aba9ccccacc47eb87008e46 (diff) | |
download | aur-85af07eb8fd44990bf1b1d619032555783378480.tar.gz |
update dependencies for phatch
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 31 insertions, 4 deletions
@@ -4,10 +4,10 @@ pkgname=phatch pkgver=0.2.7.1 pkgmajorv=0.2.7 -pkgrel=6 +pkgrel=7 pkgdesc="Phatch is a simple to use cross-platform GUI Photo Batch Processor." -depends=('python2' 'wxpython' 'python-imaging' 'mlocate') -optdepends=('python-nautilus' 'pyexiv2') +depends=('python2' 'wxpython' 'python2-pillow' 'mlocate') +optdepends=('python2-nautilus' 'pyexiv2') arch=('i686' 'x86_64') license=('GPL') @@ -19,5 +19,32 @@ install='phatch.install' package() { pushd ${srcdir}/${pkgname}-${pkgmajorv} - python2 setup.py install --root=${pkgdir} + pushd ${pkgname} + pushd actions + sed -i 's|import Image|from PIL import Image|g' *.py + sed -i 's|from PIL from PIL|from PIL|g' convert_mode.py + popd + pushd core + sed -i 's|import Image|from PIL import Image|g' *.py + popd + pushd data + sed -i 's|import Image|from PIL import Image|g' *.py + popd + pushd lib + sed -i 's|import Image|from PIL import Image|g' *.py + sed -i 's|import PngImagePlugin|from PIL import PngImagePlugin|g' *.py + pushd pyWx + sed -i 's|import Image|from PIL import Image|g' *.py + popd + popd + pushd other + sed -i 's|import Image|from PIL import Image|g' *.py + popd + pushd templates + sed -i 's|import Image|from PIL import Image|g' *.py + popd + sed -i '150a\ import phatch' app.py + popd + + python2 setup.py install --root=${pkgdir} } |