updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / gmpc-git / PKGBUILD
blob479faed765144bbb968aa6622dc7bf5c77fbdb03
1 #Maintainer: Martin Lee < hellnest.fuah@gmail.com >
3 pkgname=gmpc-git
4 provides=('gmpc=0.20.0')
5 conflicts=('gmpc' 'gmpc-svn')
6 pkgver=20110704
7 pkgrel=3
8 pkgdesc="A gnome based GUI client for MPD"
9 url="http://www.gmpclient.org"
10 license="GPL"
11 arch=('i686' 'x86_64')
12 depends=('libglade' 'libmpd-git' 'libsoup' 'libunique')
13 makedepends=('git' 'intltool' 'gob2' 'pkgconfig' 'vala')
14 options=('!libtool' '!makeflags')
16 _gitroot="git://repo.or.cz/gmpc.git"
17 _gitname="gmpc"
18 build() {
19         cd $startdir/src
20         msg "Connecting to repo.or.cz/gmpc server..."
22         if [ -d $startdir/src/$_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
34         cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35         cd $srcdir/$_gitname-build
37         ./autogen.sh --prefix=/usr
38         make || return 1
39         make DESTDIR=$pkgdir install