updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-shell-extension-window-buttons-git / PKGBUILD
blob0e7a894e9e3a3b517a919869be62bf0885de5a78
1 # Maintainer: Pi3R1k <pierrick.brun at gmail dot com>
2 pkgname=gnome-shell-extension-window-buttons-git
3 pkgver=20111207
4 pkgrel=1
5 pkgdesc="Extension which puts minimize, maximize and close buttons in the top panel."
6 arch=('any')
7 url="https://github.com/biox/Gnome-Shell-Window-Buttons-Extension"
8 license=('GPL3')
9 depends=('gnome-shell')
10 makedepends=('git' 'intltool' 'gnome-common')
11 install='gschemas.install'
13 _gitroot="https://github.com/biox/Gnome-Shell-Window-Buttons-Extension.git"
14 _gitname="gnome-shell-extension-window-buttons"
16 build() {
17   cd ${srcdir}
18   msg "Connecting to the GIT server..."
19   if [[ -d ${srcdir}/${_gitname} ]] ; then
20     cd ${_gitname}
21     git pull origin
22     msg "The local files are updated..."
23   else
24     git clone ${_gitroot} ${_gitname}
25     cd ${_gitname}
26   fi
27   msg "GIT checkout done."
28 mkdir -p $pkgdir/usr/share/glib-2.0/schemas/
29 mkdir -p $pkgdir/usr/share/gnome-shell/extensions/
30 cp org.gnome.shell.extensions.window-buttons.gschema.xml $pkgdir/usr/share/glib-2.0/schemas/
31 cp -R window_buttons@biox.github.com $pkgdir/usr/share/gnome-shell/extensions/