1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
3 pkgname=libtextchain-git
6 pkgdesc="A library to handle strings of UCS-4/UTF-32 charecters."
8 url="http://code.google.com/p/libtextchain/"
11 makedepends=('gcc' 'git' 'cmake')
13 conflicts=('libtextchain')
14 provides=('libtextchain')
18 _gitroot="https://code.google.com/p/libtextchain/"
19 _gitname="libtextchain"
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/libtextchain"
45 cd "$srcdir/$_gitname-build"
46 make DESTDIR="$pkgdir" install