View difference between Paste ID: gEm5EiBm and uh5Tx37r
SHOW: | | - or go back to the newest paste.
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
    git checkout gnome-3.2
33
    sed -i 's|GTop.glibtop_get_sysinfo().ncpu|this.get_cores()|' "system-monitor@paradoxxx.zero.gmail.com/extension.js"
34
    mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
35
    cp -R "system-monitor@paradoxxx.zero.gmail.com" "$pkgdir/usr/share/gnome-shell/extensions"
36
    mkdir -p "$pkgdir/usr/share/glib-2.0/schemas"
37
    cp "org.gnome.shell.extensions.system-monitor.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas"
38
    mkdir -p "$pkgdir/usr/bin"
39
    cp "system-monitor-applet-config.py" "$pkgdir/usr/bin/system-monitor-applet-config"
40
    mkdir -p "$pkgdir/usr/share/applications"
41
    cp "system-monitor-applet-config.desktop" "$pkgdir/usr/share/applications"
42
}