updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / pyopenfst / PKGBUILD
blob1dc4e200d09940732c6ae2d2cde3327c56db994f
1 pkgname=pyopenfst
2 pkgver=41
3 pkgrel=1
4 pkgdesc="Python openfst"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/ocropus/"
7 license=('APACHE')
8 makedepends=('mercurial' 'scons' 'openfst')
9 depends=('gcc-libs' 'sdl_gfx' 'sdl_image' 'iulib-hg')
10 source=(build_fix.diff)
11 md5sums=('c47f51ca529165f9fed7f082056f2dc6')
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"
31     cd "$srcdir/$_hgrepo"
33     patch < $srcdir/build_fix.diff
35     make INSTALL_OPTS="--root=$pkgdir"