updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / furiusisomount / PKGBUILD
blob2a5d5b4188059870a01da43230f612fd08f61bcd
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>
5 pkgname=furiusisomount
6 pkgver=0.11.3.1
7 pkgrel=1
8 pkgdesc="A PyGTK interface for managing ISO/IMG/BIN/MDF/NRG image files"
9 arch=('i686' 'x86_64')
10 url="http://www.marcus-furius.com/?page_id=170"
11 license=('GPL3')
12 depends=('fuseiso' 'pygtk')
13 source=(http://launchpad.net/$pkgname/python/$pkgver/+download/${pkgname}_$pkgver.tar.gz
14         $pkgname.desktop)
15 md5sums=('811cc5042c1d7ed69e4c0af347c94848'
16          'ee0a8d9575a608c127ccb362f88508d4')
18 build() {
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
34   done