1 # Contributor: alphazo <alphazo@gmail.com>
2 pkgname=gnome-shell-extension-presentation-mode-git
5 pkgdesc="A gnome-shell extensions that adds an option for inhibiting the screensaver to the power menu."
7 url="https://github.com/RaphaelKimmig/Gnome-Presentation-Mode"
10 depends=('gnome-shell' 'gnome-screensaver')
22 _gitroot="git://github.com/RaphaelKimmig/Gnome-Presentation-Mode.git"
23 #_gitname="gnome-shell-extension-presentation-mode"
24 _gitname="Gnome-Presentation-Mode"
28 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
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"
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