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-svn' 'libu4string-svn' 'libedstring-svn')
11 makedepends=('gcc' 'subversion' 'cmake' 'libdojson-svn' 'libu4string-svn' 'libedstring-svn')
13 conflicts=('ttapi_pm_extractor' 'libttapi')
14 provides=('ttapi_pm_extractor' 'libttapi')
18 _svntrunk=https://ttapi.googlecode.com/svn/trunk/
24 if [ -d "$_svnmod/.svn" ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_svnmod-build"
34 mkdir -p "$srcdir/$_svnmod-build"
35 cd "$srcdir/$_svnmod-build"
37 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_svnmod/ttapi"
42 cd "$srcdir/$_svnmod-build"
43 make DESTDIR="$pkgdir" install