4 pkgdesc="Python bindings for OpenFST"
6 url="http://code.google.com/p/ocropus/"
8 makedepends=('mercurial' 'scons')
9 depends=('openfst' 'python2')
10 source=(pyopenfst.patch)
11 md5sums=('d31d42312b7f279b9a226d8a0f69a294')
13 _hgroot="https://pyopenfst.googlecode.com/hg/"
18 msg "Connecting to Mercurial server...."
20 if [ -d $_hgrepo ] ; then
22 hg pull -u || return 1
23 msg "The local files are updated."
25 hg clone $_hgroot $_hgrepo || return 1
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"