updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / genplaylist-git / PKGBUILD
blobf3ff5420e5d6445474ac877f72e91eb18bdd203a
1 pkgname=genplaylist-git
2 pkgver=20110218
3 pkgrel=2
4 pkgdesc="Playlist Generator for MPD using Last.fm data"
5 arch=('i686' 'x86_64')
6 url="https://github.com/kornKoala/genPlaylist"
7 depends=('mpd' 'ruby' 'ruby-librmpd')
8 makedepends=('git')
9 license=('GPL')
10 source=()
11 md5sums=()
13 _gitroot="git://github.com/kornKoala/genPlaylist.git"
14 _gitname="genPlaylist"
16 build() {
17         cd "$srcdir"
18         msg "Connecting to GIT server..."
19         if [ -d $_gitname ] ; then
20                 cd $_gitname && git pull --all
21                 msg "The local files are updated."
22         else
23                 git clone $_gitroot
24         fi
26         msg "GIT checkout done or server timeout"
29 package() {
30     install -D -m755 $srcdir/$_gitname/genplaylist.rb \
31         $pkgdir/usr/bin/genplaylist