updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-screenruler / PKGBUILD
blob663eac5972bf6bf40b10cea6f368d820e0451a21
1 # Maintainer: gborzi <gborzi@ieee.org>
2 # Contributor: Greg von Nessi <greg.vonnessi@gmail.com>
4 pkgname=gnome-screenruler
5 _pkgname=screenruler
6 pkgver=0.89.1
7 _pkgver=0.891
8 pkgrel=3
9 pkgdesc="A GNOME screen ruler with many features."
10 arch=('any')
11 url="https://launchpad.net/screenruler"
12 license=('GPL')
13 depends=('ruby-gtk2' 'ruby-libglade' 'ruby-cairo' 'ruby-gconf2')
14 makedepends=('intltool')
15 conflicts=('gruler')
16 source=(http://ftp.de.debian.org/debian/pool/main/s/${_pkgname}/${_pkgname}_${_pkgver}+bzr25.orig.tar.gz $pkgname.desktop path_patch.diff)
18 md5sums=('347e07394e7d8b6752acc890b7c64c00' 
19          '3ac4e3ec2de932eec684379a6a81f331'
20          '69e887b8f0e4112920c964c41fe91a46')
22 build() {
24   cd $srcdir/$_pkgname-$_pkgver
26   # Fix path
27   patch -Np0 -i $srcdir/path_patch.diff || return 1
29   # no compile for installation
30   mkdir -p $pkgdir/usr/share/{applications,pixmaps,$_pkgname/utils}
31   install -m644 screenruler.glade $pkgdir/usr/share/$_pkgname
32   install -m644 measurement_tooltip_window.rb preferences_window.rb \
33                 ruler_popup_menu.rb ruler_window.rb utils/*.rb \
34                 $pkgdir/usr/share/$_pkgname/utils
35   install -Dm755 screenruler.rb $pkgdir/usr/bin/$_pkgname
37   # creation of menu entrie 
38   install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/
39   install -m644 $_pkgname-icon-*.png $pkgdir/usr/share/pixmaps/