1 # Contributor: bender02 at gmx dot com
5 pkgdesc="Teatime applet for GNOME"
7 url="http://det.cable.nu/teatime/index.rbx"
9 install=$pkgname.install
10 depends=('ruby-gconf2' 'ruby-gettext' 'ruby-gnome2' \
11 'ruby-panelapplet2' 'ruby-gstreamer')
12 source=(http://det.cable.nu/pakete/teatime-$pkgver.tar.bz2)
15 cd $srcdir/teatime-$pkgver/teatime
17 # since the 'install' insists on modifying the system files,
18 # need to do some hackery
19 # oh, I wish the programmers were a little smarter with this
21 # we're gonna copy it ourselves so that pacman keeps track of it
22 install -D -m 644 data-ext/GNOME_TeatimeApplet3_Factory.server \
23 $pkgdir/usr/lib/bonobo/servers/GNOME_TeatimeApplet3_Factory.server || return 1
25 # copy the schemas ourselves as well
26 install -D -m 644 data-ext/teatime_applet_3.schemas \
27 $pkgdir/usr/share/gconf/schemas/teatime_applet_3.schemas || return 1
28 # ditch the post-install hook completely (what needs to be done is done
29 # from the .install file
30 rm post-install.rb || return 1
33 ruby setup.rb config || return 1
34 ruby setup.rb setup || return 1
35 ruby setup.rb install --prefix=$pkgdir || return 1