updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bpython-hg / PKGBUILD
blob144649d5a9f072147f17848ccd6f825169877e67
1 # Contributor: Alexander Rødseth <rodseth@gmail.com>
2 pkgname=bpython-hg
3 pkgver=dev
4 pkgrel=1
5 pkgdesc="A fancy interface for the Python interpreter"
6 arch=('any')
7 url="http://www.bpython-interpreter.org/"
8 license=('MIT')
9 depends=('python-pygments')
10 makedepends=('mercurial')
11 provides=('bpython')
12 conflicts=('bpython')
13 _hgroot="https://bitbucket.org/bobf/bpython/"
14 _hgname="bpython"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to mercurial server"
19   if [ -d $_hgname ] ; then
20     cd "$_hgname" && hg pull
21     msg "Local files are updated"
22   else
23     hg clone "$_hgroot"
24   fi
25   msg "Mercurial checkout done or server timeout"
26   cd "$srcdir"
27   cp -r "$_hgname" "$_hgname-build"
28   msg2 "Building..."
29   cd "$_hgname-build"
30   python setup.py build
33 package() {
34   msg2 "Packaging..."
35   cd "$_hgname-build"
36   python setup.py install --root=$pkgdir
37   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
40 # vim:set ts=2 sw=2 et: