updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vagalume-git / PKGBUILD
blob24a90b56b75e7e10e1d32ead8e130d7028780613
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=vagalume-git
4 pkgver=20110327
5 pkgrel=1
6 pkgdesc="Client for Last.fm and compatible services"
7 arch=('i686' 'x86_64')
8 url="http://vagalume.igalia.com/"
9 license=('GPL')
10 depends=('curl' 'dbus-glib' 'gstreamer0.10-base' 'gtk2' 'hicolor-icon-theme' 'libnotify')
11 provides=('vagalume')
12 conflicts=('vagalume')
13 install=vagalume-git.install
15 _gitroot="git://gitorious.org/vagalume/vagalume.git"
16 _gitname="vagalume"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./autogen.sh --prefix=/usr
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   make DESTDIR="$pkgdir/" install