4 pkgdesc="Road rules frontend for Belarus"
6 url="http://code.google.com/p/pdd-by/"
10 _hgroot=https://pdd-by.googlecode.com/hg
16 if [ -d ${_hgrepo} ]; then
17 cd ${startdir}/src/${_hgrepo}
20 hg clone ${_hgroot} ${_hgrepo} || return 1
21 cd ${startdir}/src/${_hgrepo}
24 msg "Mercurial clone done or server timeout"
25 msg "Starting make..."
27 [ ! -d $srcdir/${_hgrepo}-build ] && mkdir $srcdir/${_hgrepo}-build
28 cp -ar $srcdir/$_hgrepo/* $srcdir/${_hgrepo}-build
29 cd $srcdir/${_hgrepo}-build
31 cmake -DCMAKE_INSTALL_PREFIX="/usr" -G "Unix Makefiles"
33 make DESTDIR=${pkgdir} install