updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-pyclang-hg / PKGBUILD
blob4615be7613cee102368c4cef0b9b796e66e3da96
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
4 pkgver=16
5 pkgrel=2
6 pkgdesc="ctypes-based package wrapping the libclang C-library from LLVM/CLang"
7 url="http://bitbucket.org/binet/py-clang"
8 arch=('i686' 'x86_64')
9 license=('BSD')
10 depends=('python' 'clang')
11 makedepends=('mercurial')
12 provides=('python-pyclang')
13 conflicts=('python-pyclang')
14 install=
16 _hgroot="http://bitbucket.org/binet"
17 _hgrepo="py-clang"
19 build()
21     msg "Connecting to $_hgroot"
22     if [ -d $_hgrepo ]; then
23         cd $_hgrepo
24         hg pull -u || return 1
25         msg2 "Finished updating the local repository!"
26     else
27         hg clone ${_hgroot}/${_hgrepo} "${srcdir}/${_hgrepo}" || return 1
28         msg2 "Initial pull complete!"
29     fi
31     python setup.py build || return 1
34 package() {
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