updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / pmus-git / PKGBUILD
blob96b5c401295b18504e08b0fb83e1ff497f3fb48c
1 # Contributor: totoloco <totoloco at gmail dot com>
3 pkgname=pmus-git
4 pkgver=20091113
5 pkgrel=1
6 pkgdesc="Practical Music Search is a highly configurable ncurses-based MPD client written in C++."
7 url="http://pms.sourceforge.net"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('ncurses' 'glib2')
11 provides=('pmus')
12 conflicts=('pmus')
13 md5sums=()
15 _gitname="pms"
16 _gitroot="git://$_gitname.git.sourceforge.net/gitroot/$_gitname/$_gitname"
18 build() {
19   cd $srcdir
20   msg "Connecting to GIT server..."
21   if [[ -d $_gitname ]]; then
22     (cd $_gitname && git pull origin)
23   else
24     git clone $_gitroot $_gitname
25   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -Rf $_gitname-build
30   cp -R $_gitname $_gitname-build
31   cd $_gitname-build
33   ./autogen.sh
34         ./configure --prefix=/usr || return 1
35         make || return 1
36         make DESTDIR=${pkgdir} install || return 1