updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pyopenfst-hg / PKGBUILD
blob18633a494d1d7a4692e57b549c4dad5ff8a745bb
1 pkgname=pyopenfst-hg
2 pkgver=49
3 pkgrel=1
4 pkgdesc="Python bindings for OpenFST"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/ocropus/"
7 license=('APACHE')
8 makedepends=('mercurial' 'scons')
9 depends=('openfst' 'python2')
10 source=(pyopenfst.patch)
11 md5sums=('d31d42312b7f279b9a226d8a0f69a294')
13 _hgroot="https://pyopenfst.googlecode.com/hg/"
14 _hgrepo="pyopenfst"
16 build() {
17     cd "$srcdir"
18     msg "Connecting to Mercurial server...."
20     if [ -d $_hgrepo ] ; then
21         cd $_hgrepo
22         hg pull -u || return 1
23         msg "The local files are updated."
24     else
25         hg clone $_hgroot $_hgrepo || return 1
26     fi
28     msg "Mercurial checkout done or server timeout"
29     rm -rf "$srcdir/$_hgrepo-build"
30     cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
31     cd "$srcdir/$_hgrepo-build"
33     patch -Np1 -i $srcdir/pyopenfst.patch
35     make INSTALL_OPTS="--root=$pkgdir"