1 # Maintainer: Magnus Woldrich <trapd00r@trapd00r.se>
5 pkgdesc="Perl Interface for the Music Player Daemon (MPD)"
7 url="http://github.com/trapd00r/pimpd"
9 depends=('perl-audio-mpd')
11 backup=('etc/pimpd.conf')
14 install="pimpd-git.install"
16 _gitroot="git://github.com/trapd00r/pimpd.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 mkdir -p $pkgdir/{etc,/usr/bin}
39 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
40 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
41 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
42 MODULEBUILDRC=/dev/null
50 install -D -m644 pimpd.conf $pkgdir/etc