1 # $Id: PKGBUILD,v1 2007/06/23
2 # Maintainer: Andreas Neiser <andreas.neiser@gmail.com>
3 # Former Maintainer: Vojtech Biberle <bazil.xxl@gmail.com>
4 # gnome applet for hdapsd
6 #### CHANGE IF NEEDED ####
8 # disk to be monitored, by default sda and hda
9 # change to sdb to monitor disk in modern ultrabays
12 #### CHANGE IF NEEDED ####
14 pkgname=gnome-hdaps-applet
17 pkgdesc="Gnome applet for hdapsd"
18 url="http://www.zen24593.zen.co.uk/hdaps/"
20 source=(http://www.zen24593.zen.co.uk/hdaps/$pkgname-$pkgver.tar.gz)
21 md5sums=('9a1b96669310325292e4486ce7f4c962')
27 sed -i "s|/sys/block/hda|/sys/block/$_disk_hda|" gnome-hdaps-applet.c
28 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c
29 mkdir -p $pkgdir/usr/share/pixmaps/gnome-hdaps-applet
30 install -D -m644 *.png $pkgdir/usr/share/pixmaps/gnome-hdaps-applet
31 mkdir -p $pkgdir/usr/lib/bonobo/servers
32 install -D -m644 GNOME_HDAPS_StatusApplet.server $pkgdir/usr/lib/bonobo/servers/
33 mkdir -p $pkgdir/usr/bin
34 install -D -m755 gnome-hdaps-applet $pkgdir/usr/bin/