1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Sebastien Binet <binet@lblbox>
3 pkgname=python-pyclang-hg
6 pkgdesc="ctypes-based package wrapping the libclang C-library from LLVM/CLang"
7 url="http://bitbucket.org/binet/py-clang"
10 depends=('python' 'clang')
11 makedepends=('mercurial')
12 provides=('python-pyclang')
13 conflicts=('python-pyclang')
16 _hgroot="http://bitbucket.org/binet"
21 msg "Connecting to $_hgroot"
22 if [ -d $_hgrepo ]; then
24 hg pull -u || return 1
25 msg2 "Finished updating the local repository!"
27 hg clone ${_hgroot}/${_hgrepo} "${srcdir}/${_hgrepo}" || return 1
28 msg2 "Initial pull complete!"
31 python setup.py build || return 1
35 cd "${srcdir}/${_hgrepo}"
36 python setup.py install --prefix=/usr --root=$startdir/pkg || return 1
37 install -D -m644 LICENSE "$pkgdir/usr/share/licenses/pyclang-hg/LICENSE" || return 1