updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / qmpdclient-git / PKGBUILD
blob377072089d5caefbba915888eff2539113646327
1 # created 19:32:43 - 02/08/09
2 # Mainteiner: Frikilinux <frikilinux at frikilinux.com.ar>
4 pkgname=qmpdclient-git
5 pkgver=20111216
6 pkgrel=1
7 pkgdesc="A Qt4 client for MPD"
8 url="http://bitcheese.net/wiki/QMPDClient"
9 license=('GPL')
10 arch=('i686' 'x86_64')
11 depends=('qt')
12 makedepends=('git' 'cmake')
13 conflicts=('qmpdclient')
14 provides=('qmpdclient')
16 _gitroot='https://github.com/Voker57/qmpdclient.git'
17 _gitname='qmpdclient'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to 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" "$_gitname"
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting build..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   cmake -DCMAKE_INSTALL_PREFIX=/usr
38   make
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir/" install
47 # vim:set ts=2 sw=2 et: