updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / iulib-hg / PKGBUILD
blob9ea3d2610c02ee255497cd1ee107eb38b8d6b235
1 # Contributor: Ilya Mezhirov <mezhirov@iupr.com>
3 pkgname=iulib-hg
4 pkgver=145
5 pkgrel=1
6 pkgdesc="A library of algorithms related to image understanding"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/iulib/"
9 license=('APACHE')
10 makedepends=('mercurial' 'scons')
11 depends=('gcc-libs' 'sdl_gfx' 'sdl_image')
12 conflicts=('iulib')
13 source=('remove-debug-info.patch')
14 md5sums=(be13d20ded36a6092681ec73d10ebba7)
15 #options=(!strip)
17 _hgroot="https://iulib.googlecode.com/hg/"
18 _hgrepo="iulib"
20 build() {
21     cd "$srcdir"
22     msg "Connecting to Mercurial server...."
24     if [ -d $_hgrepo ] ; then
25         cd $_hgrepo
26         hg pull -u || return 1
27         msg "The local files are updated."
28     else
29         hg clone $_hgroot $_hgrepo || return 1
30     fi
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