updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / plait-svn / PKGBUILD
blobe6a19e3050e196f789e8fe1fd7b93c87cbbcc946
1 # Contributor:  alterecco <alterecco@gmail.com>
3 pkgname=plait-svn
4 pkgver=20
5 pkgrel=3
6 pkgdesc="command-line jukebox and music player front end"
7 url="http://stephenjungels.com/jungels.net/projects/plait/"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 provides=("plait")
11 conflicts=("plait")
12 depends=("subversion")
13 optdepends=('mpd/mpc: mpd support'
14     'vorbis-tools: ogg123 support'
15     'mpg123: mpg123 support'
16     'mpg321: mpg321 support'
17     'xmms: Xmms support'
18     'bmp: Beep Media Player support'
19     'amarok: amaroK support')
21 _svntrunk=https://plait.svn.sourceforge.net/svnroot/plait/trunk
22 _svnmod=plait
24 build() {
25   cd "$srcdir"
27   if [ -d $_svnmod/.svn ]; then
28     (cd $_svnmod && svn up -r $pkgver)
29   else
30     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31   fi
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
42   # clean up install
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