updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libechonest-git / PKGBUILD
blobc82776fa64707b8e58d571111bdcd4a14f71d249
1 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=libechonest-git
3 pkgver=20110215
4 pkgrel=1
5 pkgdesc="C++ library for interfacing with Echo Nest"
6 arch=('i686' 'x86_64')
7 url="https://projects.kde.org/projects/playground/libs/libechonest"
8 license=('GPL')
9 makedepends=('git')
10 depends=('qjson')
11 provides=('libechonest')
12 source=()
13 md5sums=()
15 _gitroot="git://anongit.kde.org/libechonest.git"
16 _gitname="libechonest"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
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 \
38         .
39   make
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make install