1 # Contributor: Matt Arsenault <arsenm2@rpi.edu>
2 pkgname=gnome-js-common-git
5 pkgdesc="Library and interpreter for JavaScript with GObject type system bindings."
7 url="http://live.gnome.org/Seed/"
9 depends=('glib2' 'gobject-introspection' 'gir-repository' 'libwebkit' 'readline' 'libsoup')
10 makedepends=('git' 'cairo' 'autoconf' 'libtool' 'pkgconfig' 'intltool' 'gtk-doc' 'sqlite3' 'gnome-common' 'gtk-doc')
11 optdepends=('clutter' 'gtk' 'clutter-gtk' 'soup')
12 provides=('gnome-js-common' 'gnome-js-common-git')
13 conflicts=('gnome-js-common')
14 replaces=('gnome-js-common')
17 options=(!makeflags docs)
22 _gitroot="git://git.gnome.org/gnome-js-common"
23 _gitname="gnome-js-common"
27 msg "Connecting to git.gnome.org GIT server...."
29 if [ -d $srcdir/$_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
40 cd $srcdir/$_gitname-build
44 ./configure --prefix=/usr || return 1
46 make DESTDIR=$pkgdir install || return 1
48 rm -rf $srcdir/$_gitname-build