updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pychess-hg / PKGBUILD
blobd84d1181c0bc82724cfaef2f2746030a4de3de03
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Bernardo Barros <bernardobarros@gmail.com>
3 pkgname=pychess-hg  
4 pkgver=1722
5 pkgrel=1 
6 pkgdesc="a chess game (pygtk)"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/pychess/"
9 license=('GPL')
10 depends=('python-pysqlite' 'gnome-python-desktop' 'gnome-icon-theme' 'pygtksourceview2' 
11          'gstreamer0.10-python')
12 optdepends=('gstreamer0-10-base-plugins')
13 provides=('pychess')
14 conflicts=('pychess')
16 _hgroot="https://pychess.googlecode.com/hg/"
17 _hgrepo="pychess"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to Mercurial server...."
23   if [ -d $_hgrepo ] ; then
24     cd $_hgrepo
25     hg pull -u
26     msg "The local files are updated."
27   else
28     hg clone $_hgroot $_hgrepo
29   fi
31   msg "Mercurial checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_hgrepo-build"
35   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
36   cd "$srcdir/$_hgrepo-build"
38   python2 setup.py install --prefix=/usr --root=$pkgdir