1 #Contributor: DarkJesus <priestoftime@gmail.com>
3 pkgname=gmpc-lastfmradio-git
4 provides=gmpc-lastfmradio
5 conflicts=('gmpc-lastfmradio')
8 pkgdesc="Allows gmpc+mpd to play last.fm radio"
9 url="http://gmpcwiki.sarine.nl/index.php?title=GMPC_PLUGIN_LASTFMRADIO"
11 arch=('i686' 'x86_64')
12 depends=('gmpc-git' 'gvfs')
13 makedepends=('git' 'intltool' 'gob2' 'pkgconfig')
18 _gitroot="git://repo.or.cz/gmpc-lastfmradio.git"
19 _gitname="gmpc-lastfmradio"
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."
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
40 make DESTDIR=$startdir/pkg install
42 find $startdir/pkg -type f -name "*.la" -exec rm {} \;