updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pygments-hg / PKGBUILD
blob0901031c8faaf48f50d1e2b6e09a04105b6a79c5
1 # Maintainer: Samuel Tardieu <sam@rfc1149.net>
2 # Contributor: Igor Yanchenko <yanchenko.igor@gmail.com>
4 pkgname=pygments-hg
5 pkgver=1101
6 pkgrel=1
7 pkgdesc="Python syntax highlighter"
8 arch=('any')
9 url="http://pygments.org/"
10 license=('BSD')
11 depends=('python2-distribute')
12 makedepends=('mercurial')
13 conflicts=("python-pygments")
14 provides=("python-pygments")
15 source=()
16 md5sums=()
18 _hgroot="http://dev.pocoo.org/hg/pygments-main"
19 _hgrepo="pygments"
21 build() {
22   cd ${srcdir}
24   # update the repo, else clone a new one
25   if [ -d ${_hgrepo} ]; then
26     cd ${_hgrepo}
27     make clean
28     hg pull -u
29   else
30     hg clone ${_hgroot}/${_hgrepo}
31     cd ${_hgrepo}
32   fi
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: