summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorblubbblubb2016-11-23 18:04:16 +0100
committerblubbblubb2016-11-23 18:04:16 +0100
commit3b66b901dfd4a8655a6c43c4d08aef7b0caf215c (patch)
tree7d4e26cdffea8b0dcbcce8a734b80a76b2314f7f
parent85af07eb8fd44990bf1b1d619032555783378480 (diff)
downloadaur-3b66b901dfd4a8655a6c43c4d08aef7b0caf215c.tar.gz
removed the wx.InitAllImageHandlers() and added a tuple conversion so it doesnt crash anymore
-rw-r--r--PKGBUILD75
1 files changed, 44 insertions, 31 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 482f79f65f6..167b7eb9a2b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Original Contributor: Archie <xMickael@ifrance.com>
-# Maintainer : Anish Bhatt <anish[removethis][at]gatech[dot]edu>
+# Maintainer : blubbblubb
pkgname=phatch
pkgver=0.2.7.1
pkgmajorv=0.2.7
-pkgrel=7
+pkgrel=8
pkgdesc="Phatch is a simple to use cross-platform GUI Photo Batch Processor."
depends=('python2' 'wxpython' 'python2-pillow' 'mlocate')
optdepends=('python2-nautilus' 'pyexiv2')
@@ -12,39 +12,52 @@ arch=('i686' 'x86_64')
license=('GPL')
source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz" )
-
+
url="http://photobatch.stani.be"
md5sums=('c0638bcc6510d340c03c40ddfb0a0c2f' )
install='phatch.install'
package() {
- pushd ${srcdir}/${pkgname}-${pkgmajorv}
- 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
+ pushd ${srcdir}/${pkgname}-${pkgmajorv}
+ 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
+ sed -i 's|tostring()|tobytes()|g' wxPil.py
+ sed -i 's|fromstring(|frombytes(|g' wxPil.py
+ sed -i 's|wx_image.GetSize()|tuple(wx_image.GetSize())|g' wxPil.py
+ sed -i '/wx.InitAllImageHandlers()/d' dialogsInspector.py
+ sed -i '/wx.InitAllImageHandlers()/d' paint.py
+ popd
+ popd
+ pushd other
+ sed -i 's|import Image|from PIL import Image|g' *.py
+ popd
+ pushd pyWx
+ sed -i '/wx.InitAllImageHandlers()/d' gui.py
+ sed -i '/wx.InitAllImageHandlers()/d' dialogs.py
+ pushd wxGlade
+ sed -i '/wx.InitAllImageHandlers()/d' dialogs.py
+ sed -i '/wx.InitAllImageHandlers()/d' frame.py
+ popd
+ 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}
+ python2 setup.py install --root=${pkgdir}
}