updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / gnome-shell-window-buttons-extension-git / PKGBUILD
blob4da24b4930bf4e75ff9fb586ef0576c7ddd92857
1 # Maintainer: Javier Aravena Claramunt <javier@aravenas.com>
2 pkgname=gnome-shell-window-buttons-extension-git
3 pkgver=20111209
4 pkgrel=1
5 pkgdesc="extension for Gnome 3 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=('GPL')
9 groups=()
10 depends=('gnome-shell>=3.2')
11 conflicts=('gnome-shell>=3.3')
12 makedepends=('git')
13 install='gnome-shell-windows-button-extension-git.install'
14 md5sums=()
15 optdepends=('maximus: hide border of maximized windows')
17 _gitroot=https://github.com/biox/Gnome-Shell-Window-Buttons-Extension.git
18 _gitname=gnome-shell-window-buttons-extension
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
39 package() {
40   cd "$srcdir/$_gitname-build"
41   install -m644 -D org.gnome.shell.extensions.window-buttons.gschema.xml "$pkgdir/usr/share/glib-2.0/schemas/org.gnome.shell.extensions.window-buttons.gschema.xml"
42   install -d ${pkgdir}/usr/share/gnome-shell/extensions
43   cp -rp window_buttons@biox.github.com ${pkgdir}/usr/share/gnome-shell/extensions
46 # vim:set ts=2 sw=2 et: