1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
6 pkgdesc="A minimalist command line interface to MPD"
8 url="http://mpd.wikia.com"
10 depends=('libmpdclient-git')
12 optdepends=('bash-completion')
19 _gitroot="git://git.musicpd.org/master/mpc.git"
25 msg "Connecting to GIT server..."
27 if [ -d ${srcdir}/$_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 # Copy Latest files to Build Directory
38 rm -rf ${srcdir}/$_gitname-build
39 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40 cd ${srcdir}/$_gitname-build
43 ./autogen.sh --prefix=/usr
49 make prefix=${pkgdir}/usr install || return 1
51 # Install Bash Completion File
52 install -D -m 644 ${srcdir}/$_gitname/doc/mpc-completion.bash \
53 ${pkgdir}/etc/bash_completion.d/mpc