1 # Maintainer: gborzi <gborzi@ieee.org>
2 # Contributor: Greg von Nessi <greg.vonnessi@gmail.com>
4 pkgname=gnome-screenruler
9 pkgdesc="A GNOME screen ruler with many features."
11 url="https://launchpad.net/screenruler"
13 depends=('ruby-gtk2' 'ruby-libglade' 'ruby-cairo' 'ruby-gconf2')
14 makedepends=('intltool')
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')
24 cd $srcdir/$_pkgname-$_pkgver
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/