1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
6 pkgdesc="A C library to parse and write JSON files."
8 url="http://code.google.com/p/libdojson/"
10 depends=('libreaddata-hg' 'libbytechain-hg')
11 makedepends=('gcc' 'mercurial' 'cmake' 're2c' 'libreaddata-hg' 'libbytechain-hg')
13 conflicts=('libdojson')
14 provides=('libdojson')
18 _hgroot="https://code.google.com/p"
24 msg "Connecting to Mercurial server...."
26 if [ -d "$_hgrepo" ] ; then
29 msg "The local files are updated."
31 hg clone "$_hgroot/$_hgrepo" "$_hgrepo"
34 msg "Mercurial checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_hgrepo-build"
38 mkdir -p "$srcdir/$_hgrepo-build"
39 cd "$srcdir/$_hgrepo-build"
41 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_hgrepo/libdojson"
46 cd "$srcdir/$_hgrepo-build"
47 make DESTDIR="$pkgdir" install