Skip to content

Commit

Permalink
added PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Aug 21, 2010
1 parent bb09e0b commit 0e78920
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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

}

0 comments on commit 0e78920

Please sign in to comment.