summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnish Bhatt2013-10-07 14:33:50 -0700
committerAnish Bhatt2013-10-07 14:33:50 -0700
commit85af07eb8fd44990bf1b1d619032555783378480 (patch)
treec829d62b2f8937ea35cf449d297c2bf9db22bd32
parentcf58320614485e584aba9ccccacc47eb87008e46 (diff)
downloadaur-85af07eb8fd44990bf1b1d619032555783378480.tar.gz
update dependencies for phatch
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD35
2 files changed, 34 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af74150b209..965e883189e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = phatch
pkgdesc = Phatch is a simple to use cross-platform GUI Photo Batch Processor.
pkgver = 0.2.7.1
- pkgrel = 6
+ pkgrel = 7
url = http://photobatch.stani.be
install = phatch.install
arch = i686
@@ -9,9 +9,9 @@ pkgbase = phatch
license = GPL
depends = python2
depends = wxpython
- depends = python-imaging
+ depends = python2-pillow
depends = mlocate
- optdepends = python-nautilus
+ optdepends = python2-nautilus
optdepends = pyexiv2
source = https://launchpad.net/ubuntu/+archive/primary/+files/phatch_0.2.7.1.orig.tar.gz
md5sums = c0638bcc6510d340c03c40ddfb0a0c2f
diff --git a/PKGBUILD b/PKGBUILD
index 84dfb5ef7e9..482f79f65f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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}
}