updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / clutter-git / PKGBUILD
blob8afaccf74c76476a8b581fde618002bfff43d23d
1 # Contributor: atie H. <atie.at.matrix@gmail.com>
3 pkgname=clutter-git
4 pkgver=20090124
5 pkgrel=1
6 pkgdesc="A GObject based library for creating fast, visually rich graphical user interfaces"
7 arch=('i686' 'x86_64')
8 url="http://clutter-project.org/"
9 license=('LGPL')
10 depends=('gtk2' 'libgl')
11 options=('!libtool')
12 provides=('clutter')
13 conflicts=('clutter' 'clutter-svn')
14 source=()
15 md5sums=()
17 _gitroot="git://git.clutter-project.org/clutter"
18 _gitname="clutter"
20 build() {
21   cd $srcdir
22   msg "Connecting to git.cairographics.org GIT server...."
24   if [ -d $srcdir/$_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37   msg "Starting build"
38   ./autogen.sh
39   ./configure --prefix=/usr || return 1
40   make || return 1
41   make DESTDIR=$pkgdir install || return 1
43   rm -rf $srcdir/$_gitname-build