1 # Contributor: Peter Garceau <rockychimp@gmail.com>
5 pkgdesc="Batch Rename Utility"
8 url="http://file-folder-ren.sourceforge.net"
9 depends=('python2' 'wxpython')
10 optdepends=('pil: Required for previewing images')
11 source=("http://downloads.sourceforge.net/file-folder-ren/metamorphose2_$pkgver.tar.gz")
12 md5sums=('2b4e6fef4852b4172592de3c684a9fd2')
13 sha512sums=('5436f1f568d632269070a6d0ec2972c515e684ea744045e4a282793eaaf0fd4a27256e751616a5735c0ac4e4d672ee56333ae5f2d0161cd0c6556be07009e204')
16 cd $srcdir/metamorphose2_$pkgver
18 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
19 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
20 $(find ./ -name '*.py')
21 sed -i "s|exec python|exec python2|g" metamorphose2
23 install -d $pkgdir/usr/{bin,share/man/man1,share/pixmaps,share/applications,share/app-install/icons,share/app-install/desktop,share/locale}
24 make DESTDIR=$pkgdir all