Permalink
Browse files

pkgbuild source for gnome-shell 3.2

  • Loading branch information...
1 parent 8f400b3 commit 57322d88995115e663eb048e519a9af0bb4a167c @darkxst darkxst committed May 3, 2012
Showing with 42 additions and 0 deletions.
  1. +42 −0 archlinux/PKGBUILD.gnome-shell-3.2
@@ -0,0 +1,42 @@
+# Maintainer: Florian Mounier aka paradoxxxzero <paradoxxx.zero@gmail.com>
+pkgname=gnome-shell-system-monitor-applet-git
+pkgver=20111023
+pkgrel=1
+pkgdesc="System monitor extension for Gnome-Shell (display mem swap cpu usage)"
+arch=('any')
+url="http://github.com/paradoxxxzero/gnome-shell-system-monitor-applet"
+license=('GPL3')
+depends=('gnome-shell<3.3' 'python-gobject' 'libgtop' 'networkmanager')
+makedepends=('git')
+provides=("system-monitor-applet")
+install=gschemas.install
+
+_gitroot="git://github.com/paradoxxxzero/gnome-shell-system-monitor-applet.git"
+_gitname="gnome-shell-system-monitor-applet"
+
+build() {
+ cd ${srcdir}/
+ msg "Connecting to the GIT server..."
+ if [[ -d ${srcdir}/${_gitname} ]] ; then
+ cd ${_gitname}
+ git pull origin
+ msg "The local files are updated..."
+ else
+ git clone ${_gitroot} ${_gitname}
+ fi
+ msg "GIT checkout done."
+}
+
+package() {
+ cd "$srcdir/gnome-shell-system-monitor-applet"
+ git checkout gnome-3.2
+ sed -i 's|GTop.glibtop_get_sysinfo().ncpu|this.get_cores()|' "system-monitor@paradoxxx.zero.gmail.com/extension.js"
+ mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
+ cp -R "system-monitor@paradoxxx.zero.gmail.com" "$pkgdir/usr/share/gnome-shell/extensions"
+ mkdir -p "$pkgdir/usr/share/glib-2.0/schemas"
+ cp "org.gnome.shell.extensions.system-monitor.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas"
+ mkdir -p "$pkgdir/usr/bin"
+ cp "system-monitor-applet-config.py" "$pkgdir/usr/bin/system-monitor-applet-config"
+ mkdir -p "$pkgdir/usr/share/applications"
+ cp "system-monitor-applet-config.desktop" "$pkgdir/usr/share/applications"
+}

0 comments on commit 57322d8

Please sign in to comment.