1 # Contributor: alterecco <alterecco@gmail.com>
6 pkgdesc="command-line jukebox and music player front end"
7 url="http://stephenjungels.com/jungels.net/projects/plait/"
12 depends=("subversion")
13 optdepends=('mpd/mpc: mpd support'
14 'vorbis-tools: ogg123 support'
15 'mpg123: mpg123 support'
16 'mpg321: mpg321 support'
18 'bmp: Beep Media Player support'
19 'amarok: amaroK support')
21 _svntrunk=https://plait.svn.sourceforge.net/svnroot/plait/trunk
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_svnmod-build"
37 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38 cd "$srcdir/$_svnmod-build"
40 ./plait --install ${pkgdir}/usr || return 1
43 sed -i -e 's:^INSTALLDIR.*:INSTALLDIR="/usr":' ${pkgdir}/usr/bin/plait
44 sed -i -e 's#sed "s:.*:$INSTALLDIR:g" plait > $INSTALLDIR/bin/plait#sed "s:/usr:$INSTALLDIR:g" plait > $INSTALLDIR/bin/plait#' ${pkgdir}/usr/bin/plait