1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
3 pkgname=libreaddata-git
6 pkgdesc="A library to read data from diferent sources (file, memory...)"
8 url="http://code.google.com/p/libreaddata/"
11 makedepends=('gcc' 'git' 'cmake')
13 conflicts=('libreaddata')
14 provides=('libreaddata')
18 _gitroot="https://code.google.com/p/libreaddata/"
19 _gitname="libreaddata"
24 if [ -d $_gitname ]; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_gitname-build"
38 mkdir -p "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
41 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_gitname/libreaddata"
46 cd "$srcdir/$_gitname-build"
47 make DESTDIR="$pkgdir" install