1 # Maintainer: Magnus Woldrich <trapd00r\@trapd00r.se>
5 pkgdesc="Run mplayer as a daemon and control it remotely"
7 url="http://github.com/trapd00r/rmcd"
9 depends=('perl-mplayer-nowplaying-git')
14 _gitroot="git://github.com/trapd00r/rmcd.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 mkdir -p $pkgdir/usr/bin
37 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
38 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
39 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
40 MODULEBUILDRC=/dev/null
44 make install; } || return 1
46 install -D -m644 $srcdir/rmcd/rmcd.conf \