4 pkgdesc="A tool to parse vala or vapi files to transform them into swig interface files."
6 url="http://hg.youterm.com/valaswig"
9 makedepends=('mercurial')
11 conflicts=('valaswig')
13 _hgroot="http://hg.youterm.com"
18 msg "Connecting to Mercurial server...."
20 if [ -d ${_hgrepo} ] ; then
23 msg "The local files are updated."
25 hg clone ${_hgroot} ${_hgrepo}
28 msg "Mercurial checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf ${srcdir}/${_hgrepo}-build
32 hg clone ${srcdir}/${_hgrepo} ${srcdir}/${_hgrepo}-build
33 cd ${srcdir}/${_hgrepo}-build
36 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
37 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
38 $(find ${srcdir}/${_hgrepo}-build -name '*.py')
43 cd ${srcdir}/${_hgrepo}-build
44 make DESTDIR=${pkgdir} install
45 rm -rf ${srcdir}/${_hgrepo}-build