1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
6 pkgdesc="Library developed in C to access the Tuenti social network."
8 url="http://code.google.com/p/ttapi/"
10 depends=('libdojson-git' 'libbytechain-git' 'libtextchain-git')
11 makedepends=('gcc' 'git' 'cmake' 'libdojson-git' 'libbytechain-git' 'libtextchain-git')
13 conflicts=('ttapi_pm_extractor' 'libttapi')
14 provides=('ttapi_pm_extractor' 'libttapi')
18 _gitroot="https://code.google.com/p/ttapi/"
24 msg "Connecting to GIT server..."
26 if [ -d $_gitname ]; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 mkdir -p "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_gitname/ttapi"
45 cd "$srcdir/$_gitname-build"
46 make DESTDIR="$pkgdir" install