updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / gruler / PKGBUILD
blobb0108de7f3cabcc6ad414cd5c1b96278beb7dfcf
1 # Contributor: Greg von Nessi <greg.vonnessi@gmail.com>
3 pkgname=gruler
4 pkgver=0.8
5 pkgrel=2
6 pkgdesc="A GNOME screen ruler with many features including vertical and horizontal orientation."
7 arch=('i686' 'x86_64')
8 url="http://gnomecoder.wordpress.com/screenruler/"
9 license=('GPL')
10 depends=('ruby-gtk2' 'ruby-libglade' 'ruby-cairo' 'ruby-gconf2')
11 makedepends=('intltool')
12 source=(http://info.openanswers.org/downloads/$pkgname-latest.tar.gz \
13         arch_fix.patch \
14         gruler_bash_wrapper \
15         $pkgname.desktop)
17 md5sums=('3dd73d2a82559e4281be5eabbdb2fbbd' 
18          'd4522553a6642688096811cebb55154a'
19          '7df20dd983bb33891bcadb784cde1dc9'
20          '1a7f53ba67ec802ba5f1d2bb599f512c')
22 build() {
24   cd $startdir/src/$pkgname/
26   # without this, gruler will not start
27   patch -Np1 -i ../arch_fix.patch || return 1
29   # no compile for installation
30   mkdir -p $startdir/pkg/usr/share/{$pkgname,applications,pixmaps,$pkgname/utils}
31   install -m644 $startdir/src/$pkgname/{gruler*.[a-p]*,[p-r]*.rb} \
32           $startdir/pkg/usr/share/$pkgname/
33   install -m755 $startdir/src/$pkgname/gruler.rb \
34           $startdir/pkg/usr/share/$pkgname/
35   install -m644 $startdir/src/$pkgname/utils/*.rb \
36           $startdir/pkg/usr/share/$pkgname/utils/ 
38   # creation of menu entrie 
39   install -m644 $startdir/src/$pkgname.desktop \
40           $startdir/pkg/usr/share/applications/
41   install -m644 $startdir/src/$pkgname/$pkgname-icon.png \
42            $startdir/pkg/usr/share/pixmaps/
44   # install the bash wrapper, gruler can't be separated from the util
45   # subdirectory and ammending the PATH is too intrusive for such a small
46   # program. A wrapper seemed to be the most elegant solution.
47   mkdir -p $startdir/pkg/usr/bin
48   install -m755 $startdir/src/gruler_bash_wrapper $startdir/pkg/usr/bin/gruler