diff options
author | blubbblubb | 2016-11-23 19:11:44 +0100 |
---|---|---|
committer | blubbblubb | 2016-11-23 19:11:44 +0100 |
commit | d8e7d5628b4b8c78ece9419ddd4679d53a34445e (patch) | |
tree | 739df26ca105913b4515c2e9615eaa33fe884b71 /PKGBUILD | |
parent | 6ce2867369fab5b5b5deb1884f95587ffd969abd (diff) | |
download | aur-d8e7d5628b4b8c78ece9419ddd4679d53a34445e.tar.gz |
moved code edits to patch file
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 69 |
1 files changed, 18 insertions, 51 deletions
@@ -1,63 +1,30 @@ # Original Contributor: Archie <xMickael@ifrance.com> -# Maintainer : blubbblubb +# Contributor : Anish Bhatt <anish[removethis][at]gatech[dot]edu> +# Maintainer : blubbblubb <lampadada[removeme][at]googlemail[dot]com> pkgname=phatch pkgver=0.2.7.1 pkgmajorv=0.2.7 -pkgrel=8 +pkgrel=9 pkgdesc="Phatch is a simple to use cross-platform GUI Photo Batch Processor." -depends=('python2' 'wxpython' 'python2-pillow' 'mlocate') -optdepends=('python2-nautilus' 'pyexiv2') arch=('i686' 'x86_64') +url="http://photobatch.stani.be" license=('GPL') +depends=('python2' 'wxpython' 'python2-pillow' 'mlocate') +optdepends=('python2-nautilus' 'pyexiv2') +provides=(phatch="$pkgver") +install="$pkgname.install" +source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz" + 'phatch.patch') +md5sums=('c0638bcc6510d340c03c40ddfb0a0c2f' + '2716d5d4aa241a4d45fd9e1fec486fad') -source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz" ) - -url="http://photobatch.stani.be" -md5sums=('c0638bcc6510d340c03c40ddfb0a0c2f' ) -install='phatch.install' +prepare() { + cd "$srcdir/$pkgname-$pkgmajorv" + patch -p1 < "$srcdir"/phatch.patch +} 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 - 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} + cd "$srcdir/$pkgname-$pkgmajorv" + python2 setup.py install --root=${pkgdir} } |