Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

PKGBUILD

By: a guest on Apr 9th, 2010  |  syntax: Bash  |  size: 1.67 KB  |  hits: 358  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # $Id: PKGBUILD 73914 2010-03-29 10:39:22Z jgc $
  2. # Maintainer: Jan de Groot <jgc@archlinux.org>
  3.  
  4. pkgname=gnome-power-manager
  5. pkgver=2.30.0
  6. pkgrel=2
  7. pkgdesc="Session daemon that makes it easy to manage your laptop or desktop system. Patched for notify-osd."
  8. arch=(i686 x86_64)
  9. url="http://www.gnome.org/projects/gnome-power-manager/"
  10. license=('GPL')
  11. depends=('libnotify>=0.4.5' 'libunique>=1.1.6' 'libcanberra>=0.23' 'hicolor-icon-theme' 'upower>=0.9.1' 'libgnome-keyring>=2.29.4')
  12. makedepends=('intltool' 'pkgconfig' 'gnome-doc-utils>=0.19.5' 'gnome-panel>=2.29.92')
  13. optdepends=('gnome-panel')
  14. options=(!emptydirs)
  15. install=gnome-power-manager.install
  16. groups=(gnome-extra)
  17. source=(http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.30/${pkgname}-${pkgver}.tar.bz2
  18.         notify-osd-support.patch)
  19. sha256sums=('8fc2c772f1c0d89b200e405d02656e69a71362771175fbcb6b6db426410db647'
  20.             '4280e8a46f205fe75b02185847b69b470707d627c6ca9fb97fd30721635f2288')
  21.  
  22. build() {
  23.   cd "${srcdir}/${pkgname}-${pkgver}"
  24.   patch -Np1 -i ${srcdir}/notify-osd-support.patch
  25.   ./configure --prefix=/usr --sysconfdir=/etc \
  26.       --localstatedir=/var \
  27.       --libexecdir=/usr/lib/gnome-power-manager \
  28.       --disable-scrollkeeper \
  29.       --with-dbus-services=/usr/share/dbus-1/services \
  30.       --enable-applets || return 1
  31.   make || return 1
  32.   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
  33.  
  34.   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  35.   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gnome-power-manager ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
  36.   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
  37. }