1 #Contributor: Flamelab <panosfilip@gmail.com>
6 pkgdesc="Javascript Bindings for GNOME, git version"
8 url="http://live.gnome.org/Gjs"
10 depends=('cairo' 'dbus-glib' 'gobject-introspection' 'js')
11 makedepends=('git' 'gnome-common' 'xulrunner' 'python2')
14 options=(!makeflags !emptydirs)
15 _gitroot="git://git.gnome.org/gjs"
21 msg "Connecting to the GNOME GIT server...."
22 if [[ -d ${srcdir}/${_gitname} ]] ; then
25 msg "The local files are updated..."
30 msg "GIT checkout done."
32 msg "Starting make for: ${pkgname}"
34 if [[ -d ${srcdir}/${_gitname}-build ]]; then
35 msg "Cleaning the previous build directory..."
36 rm -rf ${srcdir}/${_gitname}-build
39 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
41 cd ${srcdir}/${_gitname}-build
43 sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" scripts/make-tests
46 ./autogen.sh --prefix=/usr || return 1
48 make DESTDIR=$pkgdir install || return 1