updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ncmpc-git / PKGBUILD
blobbb0c1e47bee80d7282f098ef6e8d6309e3e0be26
1 # Contributor: Rasi <rasi13@gmx.de>
3 pkgname=ncmpc-git
4 pkgver=20091015
5 pkgrel=1
6 pkgdesc="ncmpc - bleeding edge git version." 
7 arch=('i686' 'x86_64')
8 url="http://www.musicpd.org/ncmpc.shtml"
9 license=('GPL2')
10 depends=('python' 'expat' 'glib2' 'ncurses' 'libmpdclient-git')
11 makedepends=('git' 'autoconf' 'automake')
12 conflicts=('ncmpc' 'ncmpc-svn')
13 source=()
14 md5sums=()
16 _gitroot="git://git.musicpd.org/master/ncmpc.git"
17 _gitname="ncmpc"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to repo.or.cz GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37     ./autogen.sh \
38         --prefix=$startdir/pkg/usr \
39         --enable-lyrics-screen \
40         --enable-artist-screen \
42     make || return 1
43     make prefix=$startdir/pkg/usr install
44