updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / echoprint-codegen-git / PKGBUILD
blobc25b997201cd6f27245d4067c6e0517ccda3db46
1 # Maintainer: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=echoprint-codegen-git
3 pkgver=20110713
4 pkgrel=1
5 pkgdesc="music fingerprint and resolving framework powered by The Echo Nest"
6 arch=(i686 x86_64)
7 url="http://echoprint.me/"
8 license=('MIT')
9 depends=('ffmpeg' 'taglib')
10 makedepends=('git' 'boost')
11 provides=(echoprint-codegen)
12 conflicts=()
13 replaces=()
14 backup=()
15 options=()
16 install=
17 source=()
18 noextract=()
19 md5sums=()
21 _gitroot="git://github.com/echonest/echoprint-codegen.git"
22 _gitname="echoprint-codegen"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
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"
42   make -C src
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make -C src PREFIX=${pkgdir}/usr install
48   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
49