Advertisement
Guest User

Gnome shell system monitor updated PKGBUILD for 3.4

a guest
Apr 24th, 2012
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # Maintainer: Florian Mounier aka paradoxxxzero <paradoxxx.zero@gmail.com>
  2. pkgname=gnome-shell-system-monitor-applet-git
  3. pkgver=20120424
  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.  
  32. sed -i 's/GTop.glibtop_get_sysinfo().ncpu/this.get_cores()/g' "gnome-shell-system-monitor-applet/system-monitor@paradoxxx.zero.gmail.com/extension.js"
  33.  
  34. cd "$srcdir/gnome-shell-system-monitor-applet"
  35.  
  36. mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
  37. cp -R "system-monitor@paradoxxx.zero.gmail.com" "$pkgdir/usr/share/gnome-shell/extensions"
  38.  
  39. mkdir -p "$pkgdir/usr/share/glib-2.0/schemas"
  40. cp "system-monitor@paradoxxx.zero.gmail.com/schemas/org.gnome.shell.extensions.system-monitor.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas"
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement