1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: nikitines <nikitin.evgeni@gmail.com>
3 # Contributor: Noneus <N_O_N_E_U_S at noneus.de>
8 pkgdesc="A PyGTK interface for managing ISO/IMG/BIN/MDF/NRG image files"
10 url="http://www.marcus-furius.com/?page_id=170"
12 depends=('fuseiso' 'pygtk')
13 source=(http://launchpad.net/$pkgname/python/$pkgver/+download/${pkgname}_$pkgver.tar.gz
15 md5sums=('811cc5042c1d7ed69e4c0af347c94848'
16 'ee0a8d9575a608c127ccb362f88508d4')
19 cd $srcdir/${pkgname}_$pkgver
20 find src -name '*.py' -exec sed -i 's,#!/usr/bin/env python,&2,' '{}' \;
21 sed -i "s,python,&2,; 2 a\cd /usr/share/$pkgname" $pkgname
22 install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
23 install -Dm644 ../$pkgname.desktop \
24 $pkgdir/usr/share/applications/$pkgname.desktop
26 install -dm755 $pkgdir/usr/share/$pkgname/{pix,res,src}
27 install -m644 pix/* $pkgdir/usr/share/$pkgname/pix
28 install -m644 res/main_window.glade $pkgdir/usr/share/$pkgname/res
29 install -m644 src/* $pkgdir/usr/share/$pkgname/src
31 install -dm755 $pkgdir/usr/share/locale/{el,es,it,pl,ru,zh_CN}/LC_MESSAGES
32 for _lc in locale/{el,es,it,pl,ru,zh_CN}/LC_MESSAGES; do
33 install -m644 $_lc/* $pkgdir/usr/share/$_lc