# Contributor: pkgname=gobject-introspection-git pkgver=20101007 pkgrel=1 pkgdesc="GObject Introspection" arch=(i686 x86_64) url="http://live.gnome.org/GObjectIntrospection/" license=('LGPL') depends=('glib2' 'python' 'libffi' 'gvfs') optdepends=() makedepends=('git' 'python' 'libtool' 'pkgconfig' 'autoconf' 'gnome-common' 'gtk-doc' 'bison') provides=('gobject-introspection' 'gobject-introspection-git') conflicts=('gobject-introspection') replaces=('gobject-introspection-svn' 'gobject-introspection') backup=() groups=() options=(!makeflags docs) install= source=() noextract=() md5sums=() _gitroot="git://git.gnome.org/gobject-introspection" _gitname="gobject-introspection" build() { cd $srcdir msg "Connecting to git.gnome.org GIT server...." if [ -d $srcdir/$_gitname ] ; then cd $_gitname && git pull origin msg "The local files are updated." else git clone $_gitroot fi msg "GIT checkout done or server timeout" msg "Starting make..." cp -r $srcdir/$_gitname $srcdir/$_gitname-build cd $srcdir/$_gitname-build msg "Starting build" export PYTHON=python2 ./autogen.sh ./configure --prefix=/usr || return 1 make || return 1 make DESTDIR=$pkgdir install || return 1 rm -rf $srcdir/$_gitname-build }