Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

gnome-shell-system-monitor-applet-git

By: a guest on Feb 4th, 2012  |  syntax: Bash  |  size: 1.61 KB  |  views: 575  |  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. # Maintainer: Florian Mounier aka paradoxxxzero <paradoxxx.zero@gmail.com>
  2. pkgname=gnome-shell-system-monitor-applet-git
  3. pkgver=20111023
  4. pkgrel=1
  5. pkgdesc="System monitor extension for Gnome-Shell (display mem swap cpu usage)"
  6. arch=('any')
  7. url="http://github.com/paradoxxxzero/gnome-shell-system-monitor-applet"
  8. license=('GPL3')
  9. depends=('gnome-shell' 'python-gobject' 'libgtop')
  10. makedepends=('git')
  11. provides=("system-monitor-applet")
  12. install=gschemas.install
  13.  
  14. _gitroot="git://github.com/paradoxxxzero/gnome-shell-system-monitor-applet.git"
  15. _gitname="gnome-shell-system-monitor-applet"
  16.  
  17. build() {
  18.     cd ${srcdir}/
  19.     msg "Connecting to the GIT server..."
  20.     if [[ -d ${srcdir}/${_gitname} ]] ; then
  21.         cd ${_gitname}
  22.         git pull origin
  23.         msg "The local files are updated..."
  24.     else
  25.         git clone ${_gitroot} ${_gitname}
  26.     fi
  27.     msg "GIT checkout done."
  28. }
  29.  
  30. package() {
  31.     cd "$srcdir/gnome-shell-system-monitor-applet"
  32.     sed -i 's|GTop.glibtop_get_sysinfo().ncpu|this.get_cores()|' "system-monitor@paradoxxx.zero.gmail.com/extension.js"
  33.     mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
  34.     cp -R "system-monitor@paradoxxx.zero.gmail.com" "$pkgdir/usr/share/gnome-shell/extensions"
  35.     mkdir -p "$pkgdir/usr/share/glib-2.0/schemas"
  36.     cp "org.gnome.shell.extensions.system-monitor.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas"
  37.     mkdir -p "$pkgdir/usr/bin"
  38.     cp "system-monitor-applet-config.py" "$pkgdir/usr/bin/system-monitor-applet-config"
  39.     mkdir -p "$pkgdir/usr/share/applications"
  40.     cp "system-monitor-applet-config.desktop" "$pkgdir/usr/share/applications"
  41. }