updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / pdd-by-hg / PKGBUILD
blobcf71cfe8769fd799bb5d2d611a0a0a9debd87c07
1 pkgname="pdd-by-hg"
2 pkgver=28
3 pkgrel=1
4 pkgdesc="Road rules frontend for Belarus"
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/pdd-by/"
7 license=('GPL')
8 makedepends=('cmake')
9 depends=('libyaml')
10 _hgroot=https://pdd-by.googlecode.com/hg
11 _hgrepo=pdd-by
13 build() {
14     cd $srcdir
16       if [ -d ${_hgrepo} ]; then
17           cd ${startdir}/src/${_hgrepo}
18           hg pull -u
19       else
20           hg clone ${_hgroot} ${_hgrepo} || return 1
21           cd ${startdir}/src/${_hgrepo}
22       fi
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"
32     make
33     make DESTDIR=${pkgdir} install