updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / metamorphose2 / PKGBUILD
blobce917a88178762210c37ca26a5e149203d8f0c6d
1 # Contributor: Peter Garceau <rockychimp@gmail.com>
2 pkgname=metamorphose2
3 pkgver=0.8.2
4 pkgrel=1
5 pkgdesc="Batch Rename Utility"
6 arch=(i686 x86_64)
7 license=('GPL')
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')
15 build() {
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