1 # Maintainer: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=echoprint-codegen-git
5 pkgdesc="music fingerprint and resolving framework powered by The Echo Nest"
7 url="http://echoprint.me/"
9 depends=('ffmpeg' 'taglib')
10 makedepends=('git' 'boost')
11 provides=(echoprint-codegen)
21 _gitroot="git://github.com/echonest/echoprint-codegen.git"
22 _gitname="echoprint-codegen"
26 msg "Connecting to GIT server...."
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
38 rm -rf "$srcdir/$_gitname-build"
39 git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
46 cd "$srcdir/$_gitname-build"
47 make -C src PREFIX=${pkgdir}/usr install
48 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"