updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / ptk / PKGBUILD
blob2cbbdf6807b2d9da66152b8d1a4c29670132fc30
1 pkgname=ptk
2 pkgver=361
3 pkgrel=1
4 pkgdesc="Protrekkr - tracker, sequencer"
5 arch=('i686')
6 url="http://code.google.com/p/protrekkr/"
7 license=('New BSD')
8 groups=('')
9 depends=('alsa-oss')
10 makedepends=('subversion')
11 source=()
12 md5sums=()
13 _svntrunk=http://protrekkr.googlecode.com/svn/trunk/
14 _svnmod=ptk
15 #install=ptk.install
16 build() {
17     svn co $_svntrunk $pkgname --config-dir ./ $pkver
18     msg "SVN checkout done or sever timeout"
19     msg "Starting make..."
20     cd $srcdir/ptk/src/extralibs/tinyxml ;  make
21     cd $srcdir/ptk/src/extralibs/sdl_draw ; make -f makefile.linux
22     cd $srcdir/ptk
23     echo "src dir".$srcdir
24     patch -p0 -i $startdir/ptk1.98k-makefile.patch $srcdir/ptk/makefile.linux
25     make -f makefile.linux || return 1
26     mkdir  -p $pkgdir/usr/share/ptk $pkgdir/usr/bin
27     ln -s /usr/share/ptk/ptk_linux $pkgdir/usr/bin/ptk-oss
28     echo '#!/bin/bash
29 aoss /usr/share/ptk/ptk_linux' > $pkgdir/usr/bin/ptk-alsa
30     chmod 755 $pkgdir/usr/bin/ptk-alsa 
31     ln -s /usr/bin/ptk-alsa $pkgdir/usr/bin/ptk
32     cp -r $srcdir/ptk/release/distrib/*  $pkgdir/usr/share/ptk