1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: Matej Horváth <matej.horvath@gmail.com>
7 pkgdesc="A GUI front-end for scrot"
9 url="http://gscreenshot.googlecode.com/"
11 depends=('libglade' 'scrot' 'pygtk' 'python-imaging')
12 source=(http://$pkgname.googlecode.com/svn/trunk/$pkgname-$pkgver.tar.gz
13 black-white_2-Style-applets-screenshooter.png $pkgname.desktop)
14 noextract=($pkgname-$pkgver.tar.gz)
15 md5sums=('9b71ff62bb1a4d30557f6af6726da10f'
16 '289f9c98f97be35bc558ee5d314d3a3d'
17 'edca8ec37120e6bfbb438e136f03551d')
21 install -dm755 "$pkgdir/usr/share/$pkgname"
22 tar xzf $pkgname-$pkgver.tar.gz -C "$pkgdir/usr/share/$pkgname" \
23 --strip=1 --transform="s,$pkgname$,$pkgdir/usr/bin/$pkgname,"
24 install -Dm644 $pkgname.desktop \
25 "$pkgdir/usr/share/applications/$pkgname.desktop"
26 install -Dm644 black-white_2-Style-applets-screenshooter.png \
27 "$pkgdir/usr/share/pixmaps/$pkgname.png"
28 sed -i 's,/usr/bin/env python,&2,' "$pkgdir/usr/share/$pkgname/$pkgname.py"