1 # Contributor: Created byMatthew Bauer <mjbauer95@gmail.com>
2 # fixed by "reztho", uploaded by barabbas
4 pkgname=${_pkgname}-git
7 pkgdesc="Python (PyGObject) bindings to the GUDev library"
9 url="http://github.com/nzjrs/${_pkgname}"
13 provides=("${_pkgname}")
14 conflicts=("${_pkgname}")
15 replaces=('conduit-svn')
17 _gitroot="git://github.com/nzjrs/${_pkgname}.git"
18 _gitname="${_pkgname}"
22 msg "Connecting to GIT server...."
24 if [ -d ${_gitname} ] ; then
25 cd ${_gitname} && git pull origin
26 msg "The local files are updated."
28 git clone ${_gitroot} ${_gitname}
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "${srcdir}/${_gitname}-build"
35 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36 cd "${srcdir}/${_gitname}-build"
39 ./configure --prefix=/usr PYTHON=python2
40 sed -i '/#include <pygobject\.h>/ i\
41 #include <python2.7/Python.h>' "${srcdir}/${_gitname}-build/gudevmodule.c"
43 make DESTDIR="${pkgdir}/" install