updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / gscreenshot / PKGBUILD
blob59a1296d5144926099fce90895be9ecdae0fc326
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Matej Horváth <matej.horvath@gmail.com>
4 pkgname=gscreenshot
5 pkgver=1.3
6 pkgrel=5
7 pkgdesc="A GUI front-end for scrot"
8 arch=('i686' 'x86_64')
9 url="http://gscreenshot.googlecode.com/"
10 license=('GPL')
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')
19 build() {
20   cd "$srcdir"
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"