updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-shell-extension-presentation-mode-git / PKGBUILD
blob7c162cb66a361bdd40afa96b684e450f2299086f
1 # Contributor: alphazo <alphazo@gmail.com>
2 pkgname=gnome-shell-extension-presentation-mode-git
3 pkgver=20111207
4 pkgrel=1
5 pkgdesc="A gnome-shell extensions that adds an option for inhibiting the screensaver to the power menu."
6 arch=('any')
7 url="https://github.com/RaphaelKimmig/Gnome-Presentation-Mode"
8 license=('GPL')
9 groups=()
10 depends=('gnome-shell' 'gnome-screensaver')
11 makedepends=('git')
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 #source=
20 #md5sums=
22 _gitroot="git://github.com/RaphaelKimmig/Gnome-Presentation-Mode.git"
23 #_gitname="gnome-shell-extension-presentation-mode"
24 _gitname="Gnome-Presentation-Mode"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build/presentationmode@ampad.de"
41   
42   # No longer required for minor gnome-shell versions
43   # sed -i -e "s|3.0.1|3.0.2|" metadata.json
45   mkdir -p $pkgdir/usr/share/gnome-shell/extensions/presentationmode@ampad.de
46   cp -r * $pkgdir/usr/share/gnome-shell/extensions/presentationmode@ampad.de || return 1