1 # Contributor: Ilya Mezhirov <mezhirov@iupr.com>
6 pkgdesc="A library of algorithms related to image understanding"
8 url="http://code.google.com/p/iulib/"
10 makedepends=('mercurial' 'scons')
11 depends=('gcc-libs' 'sdl_gfx' 'sdl_image')
13 source=('remove-debug-info.patch')
14 md5sums=(be13d20ded36a6092681ec73d10ebba7)
17 _hgroot="https://iulib.googlecode.com/hg/"
22 msg "Connecting to Mercurial server...."
24 if [ -d $_hgrepo ] ; then
26 hg pull -u || return 1
27 msg "The local files are updated."
29 hg clone $_hgroot $_hgrepo || return 1
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting scons..."
36 rm -rf "$srcdir/$_hgrepo-build"
37 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38 cd "$srcdir/$_hgrepo-build"
39 patch -p1 <"$srcdir/remove-debug-info.patch"
41 scons opt="-O3" prefix="$pkgdir/usr" sdl=1 || return 1
42 scons opt="-O3" prefix="$pkgdir/usr" sdl=1 install || return 1