updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gnome-shell-extension-gnome2-notifications-git / PKGBUILD
blob013e69e0eda76c82f23afd27ee11179627c2b3ed
1 #Maintainer: Juanma Hernandez <juanmah@gmail.com>
3 pkgname=gnome-shell-extension-gnome2-notifications-git
4 pkgver=20111027
5 pkgrel=1
6 pkgdesc="gnome-shell-gnome2-notifications is YAGSE (Yet Another GNOME Shell extension) that tries to provide an "old-skool" gnome2 way of showing application's tray icons."
7 arch=('any')
8 url="https://github.com/rcmorano/gnome-shell-gnome2-notifications"
9 license=('GPL2')
10 depends=('gnome-shell-extensions-common>=3.2.0')
11 optdepends=('gnome-tweak-tool: A tool to customize advanced GNOME 3 options.')
12 makedepends=('git' 'gnome-common' 'intltool')
13 install='gschemas.install'
15 _gitroot="https://github.com/rcmorano/gnome-shell-gnome2-notifications"
16 _gitname="gnome-shell-gnome2-notifications"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
32 _extpath="$pkgdir/usr/share/gnome-shell/extensions"
33 _extname="gnome-shell-classic-systray@emergya.com"
35 package() {
36   mkdir -p "$_extpath/$_extname"
37   cd "$srcdir/$_gitname/$_extname"
38   sed -i -e "s|3.2.0|3.2.1|" metadata.json
39   cp extension.js metadata.json "$_extpath/$_extname"