1 # Maintainer: Samuel Tardieu <sam@rfc1149.net>
2 # Contributor: Igor Yanchenko <yanchenko.igor@gmail.com>
7 pkgdesc="Python syntax highlighter"
9 url="http://pygments.org/"
11 depends=('python2-distribute')
12 makedepends=('mercurial')
13 conflicts=("python-pygments")
14 provides=("python-pygments")
18 _hgroot="http://dev.pocoo.org/hg/pygments-main"
24 # update the repo, else clone a new one
25 if [ -d ${_hgrepo} ]; then
30 hg clone ${_hgroot}/${_hgrepo}
34 python2 setup.py install --root="$pkgdir" -O1 || return 1
36 install -Dm644 external/pygments.bashcomp \
37 "$pkgdir/etc/bash_completion.d/pygments" || return 1
39 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42 # vim:set ts=2 sw=2 et: