1 # Contributor: Predrag Radovic <predrg@gmail.com>
3 pkgname=crtmpserver-svn
6 pkgdesc="high performance streaming server"
8 url="http://www.rtmpd.com/"
11 makedepends=('subversion')
12 provides=('crtmpserver')
13 conflicts=('crtmpserver')
20 md5sums=('e1814226db984827c658628decc16aa2'
21 '45f51883af94092101d727ff176bbb43'
22 'b100de23c8eb43a42b596fe8949482e2'
23 'c662366f1d1f97529ded6251758d03a9')
25 _svntrunk='https://svn.rtmpd.com/crtmpserver/trunk'
32 msg "Starting SVN checkout"
34 if [ -d $_svnmod/.svn ]; then
35 (cd $_svnmod && svn up --non-interactive --no-auth-cache --username anonymous --password "" -r $pkgver)
37 svn co --non-interactive --no-auth-cache --username anonymous --password "" $_svntrunk --config-dir ./ -r $pkgver $_svnmod
40 msg "SVN checkout done or server timeout"
41 msg "Preparing sources..."
43 if [ -d $srcdir/$_svnmod-build ] ; then
44 rm -rf "$srcdir/$_svnmod-build"
46 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
47 cd "$srcdir/$_svnmod-build"
49 for p in ../../commit-*; do patch -p1 < $p; done
53 cmake -DCRTMPSERVER_INSTALL_PREFIX=/usr
55 make DESTDIR="$pkgdir" install