updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cluttersmith-git / PKGBUILD
blobf3e47f09ee4ad520c07d702e64b40ee54ae8a74c
1 # Contributor: atie H. <atie.at.matrix@gmail.com>
3 pkgname=cluttersmith-git
4 pkgver=20100810
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=('clutter-git' 'json-glib-git' 'mx')
11 options=('!libtool')
12 source=()
13 md5sums=()
15 _gitroot="git://git.clutter-project.org/cluttersmith"
16 _gitname="cluttersmith"
18 build() {
19   msg "Connecting to git.clutter-project.org GIT server...."
21   if [ -d "$srcdir/$_gitname" ] ; then
22     cd "$srcdir/$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
28   if [ -d "$srcdir/$_gitname-build" ] ; then
29     cd "$srcdir/$_gitname-build" && git pull origin
30   else
31     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   fi
34   cd $srcdir/$_gitname-build
36   msg "Starting build"
37   ./autogen.sh --prefix=/usr
38   make -j2
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir" install