1 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=libechonest-git
5 pkgdesc="C++ library for interfacing with Echo Nest"
7 url="https://projects.kde.org/projects/playground/libs/libechonest"
11 provides=('libechonest')
15 _gitroot="git://anongit.kde.org/libechonest.git"
16 _gitname="libechonest"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
36 cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
37 -DCMAKE_BUILD_TYPE=Release \
43 cd "$srcdir/$_gitname-build"