updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ncmpcr-git / PKGBUILD
blob7dbf53a0df4eab49b42a2d1b587e24f0f225cf0a
1 # Contributor: Cyker Way <cykerway at gmail dot com>
3 pkgname=ncmpcr-git
4 pkgver=20110626
5 pkgrel=1
6 pkgdesc="ncmpcr - Ncurses MPD Client with Rating" 
7 arch=('i686' 'x86_64')
8 url="http://ncmpcr.cykerway.com"
9 license=('GPL3')
10 depends=('ncurses' 'libmpdclient-git')
11 makedepends=('git' 'autoconf' 'automake')
12 source=()
13 md5sums=()
15 _gitroot="git://github.com/cykerway/ncmpcr.git"
16 _gitname="ncmpcr"
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
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36     ./autogen.sh \
37         --prefix=$startdir/pkg/usr \
39     make || return 1
40     make prefix=$startdir/pkg/usr install
41