Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (37 sloc) 1.06 KB
# Contributor: Magnus Woldrich <trapd00r@trapd00r.se>
pkgname=rpd
pkgver=20100822
pkgrel=1
pkgdesc="Radio Playing Daemon. Uses mplayer as the backend."
arch=('any')
url="http://github.com/trapd00r/RPD"
license=('GPLv2')
depends=('perl' 'perl-mplayer-nowplaying-git')
makedepends=('git')
source=()
md5sums=()
_gitroot="git://github.com/trapd00r/RPD"
_gitname="RPD"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
mkdir -p $pkgdir/usr/bin
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
{ perl Makefile.PL &&
make &&
make install; } || return 1
}