updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gobject-introspection-git / PKGBUILD
blob36a6bd8c9bc902ea7fcecef06507fe9bbb11521d
1 # Maintainer: Joao Cordeiro <jlcordeiro at gmail dot com>
2 # Contributor: <arsenm2@rpi.edu>
4 pkgname=gobject-introspection-git
5 pkgver=20110123
6 pkgrel=3
7 pkgdesc="GObject Introspection"
8 arch=('i686' 'x86_64')
9 url="http://live.gnome.org/GObjectIntrospection/"
10 license=('LGPL')
11 depends=('glib2' 'python2' 'libffi')
12 optdepends=()
13 makedepends=('git' 'pkgconfig' 'autoconf' 'gtk-doc' 'gnome-common' 'bison')
14 provides=('gobject-introspection=0.10.0' 'gobject-introspection-git')
15 conflicts=('gobject-introspection' 'gobject-introspection-svn')
16 options=(!makeflags docs)
17 install=
18 source=()
20 _gitroot="git://git.gnome.org/gobject-introspection"
21 _gitname="gobject-introspection"
23 build() {
24   cd $srcdir
25   msg "Connecting to git.gnome.org GIT server...."
27   if [ -d $srcdir/$_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
38   cd $srcdir/$_gitname-build
40   sed -i 's|^# Python|# Python\
41       PYTHON=/usr/bin/python2|' configure.ac
42   
43   msg "Starting build"
44   ./autogen.sh
45   ./configure --prefix=/usr
46   make || return 1
47   make DESTDIR=$pkgdir install
49   rm -rf $srcdir/$_gitname-build
52 # vim:set ts=2 sw=2 et: