updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gmpc-lastfmradio-git / PKGBUILD
blob442a3318f0b89eea0865d9b2f132a18e3d0c837d
1 #Contributor: DarkJesus <priestoftime@gmail.com>
3 pkgname=gmpc-lastfmradio-git
4 provides=gmpc-lastfmradio
5 conflicts=('gmpc-lastfmradio')
6 pkgver=20081119
7 pkgrel=1
8 pkgdesc="Allows gmpc+mpd to play last.fm radio"
9 url="http://gmpcwiki.sarine.nl/index.php?title=GMPC_PLUGIN_LASTFMRADIO"
10 license="GPL"
11 arch=('i686' 'x86_64')
12 depends=('gmpc-git' 'gvfs')
13 makedepends=('git' 'intltool' 'gob2' 'pkgconfig')
14 options=('!libtool')
15 source=()
16 md5sums=()
18 _gitroot="git://repo.or.cz/gmpc-lastfmradio.git"
19 _gitname="gmpc-lastfmradio"
21 build() {
22         cd $startdir/src
23         msg "Connecting to $_gitroot server..."
25         if [ -d $startdir/src/$_gitname ] ; then
26                 cd $_gitname && git-pull origin
27                 msg "The local files are updated."
28         else
29                 git clone $_gitroot
30         fi
32         msg "GIT checkout done or server timeout"
33         msg "Starting make..."
35         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
36         cd $startdir/src/$_gitname-build
38         ./autogen.sh --prefix=/usr
39         make || return 1
40         make DESTDIR=$startdir/pkg install
42         find $startdir/pkg -type f -name "*.la" -exec rm {} \;