updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gnome-shell-extension-shellshape-git / PKGBUILD
blob5fb537275ede02addb23871934b7e2b298237f4f
1 # Maintainer: Markus Unterwaditzer <markus at unterwaditzer dot net>
2 # Contributor: Jussi Timperi <jussi.timperi at gmail dot com>
4 pkgname=gnome-shell-extension-shellshape-git
5 pkgver=20110812
6 pkgrel=1
7 pkgdesc="A tiling window manager extension for gnome-shell"
8 arch=(any)
9 url="http://gfxmonk.net/shellshape/"
10 license=('GPL3')
11 depends=('gnome-shell' 'shellshape-mutter-git')
12 makedepends=('git')
13 provides=('gnome-shell-extension-shellshape')
14 conflicts=('gnome-shell-extension-shellshape')
15 source=()
16 md5sums=()
18 _gitroot="git://github.com/gfxmonk/shellshape.git"
19 _gitname="shellshape"
20 _gitbranch="3.2" # https://github.com/gfxmonk/shellshape/issues/52
22 build() {
23         cd "$srcdir"
24         msg "Connecting to GIT server...."
26         if [ -d $_gitname ] ; then
27                 cd $_gitname && git pull origin
28                 git checkout $_gitbranch # just to be sure
29                 msg "The local files are updated."
30         else
31                 git clone $_gitroot $_gitname
32                 cd $_gitname && git checkout $_gitbranch
33         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"
44 package() {
45         mkdir -p "$pkgdir/usr/share/gnome-shell/extensions"
46         mkdir -p "$pkgdir/usr/share/gnome-shell/js"
47         mkdir -p "$pkgdir/usr/share/icons"
48         cp -p $srcdir/$_gitname-build/lib/* "$pkgdir/usr/share/gnome-shell/js/"
49         cp -pr "$srcdir/$_gitname-build/shellshape" "$pkgdir/usr/share/gnome-shell/extensions/shellshape@gfxmonk.net"
50         cp -p $srcdir/$_gitname-build/icons/status/*.svg "$pkgdir/usr/share/icons/"