updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gnome-shell-extension-gajim-git / PKGBUILD
blobc68bdbde7f5b74704487d9aad9f90bf5d116a225
1 # Maintainer: Sebastian Lenz <sebastian@archusers.de>
2 pkgname=gnome-shell-extension-gajim-git
3 pkgver=20110502
4 pkgrel=1
5 pkgdesc="Integration with Gajim, a Jabber/XMPP instant messaging client."
6 arch=('i686' 'x86_64')
7 url="http://live.gnome.org/GnomeShell/Extensions"
8 license=('GPL' 'LGPL')
9 depends=('gnome-shell-extension-common-git')
10 makedepends=('git' 'gnome-common' 'intltool')
11 conflicts=('gnome-shell-extensions-git')
12 _gitroot="git://git.gnome.org/gnome-shell-extensions"
13 _gitname="gnome-shell-extensions"
15 build() {
16         cd "$srcdir"
17         msg "Connecting to GIT server...."
19         if [ -d $_gitname ] ; then
20                 cd $_gitname && git pull origin
21                 msg "The local files are updated."
22         else
23                 git clone $_gitroot --depth=1
24     
25                 cd $_gitname
26                 git branch -f gnome-3-0 origin/gnome-3-0
27                 git checkout gnome-3-0
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
33         cd ${srcdir}/${_gitname}
34         ./autogen.sh --prefix=/usr --enable-extensions="gajim"
36 package() {
37         cd ${srcdir}/${_gitname}
38         make DESTDIR=${pkgdir} install
39         rm -r ${pkgdir}/usr/share/locale