updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / crtmpserver-svn / PKGBUILD
blobe57bd15569d8b4fe9ba357f5e04fc5018486d12d
1 # Contributor: Predrag Radovic <predrg@gmail.com>
3 pkgname=crtmpserver-svn
4 pkgver=474
5 pkgrel=1
6 pkgdesc="high performance streaming server"
7 arch=(i686 x86_64)
8 url="http://www.rtmpd.com/"
9 license=('GPL')
10 depends=('openssl')
11 makedepends=('subversion')
12 provides=('crtmpserver')
13 conflicts=('crtmpserver')
14 source=(
15 commit-00fe53a
16 commit-3d0a865
17 commit-483084a
18 commit-739d43b
20 md5sums=('e1814226db984827c658628decc16aa2'
21          '45f51883af94092101d727ff176bbb43'
22          'b100de23c8eb43a42b596fe8949482e2'
23          'c662366f1d1f97529ded6251758d03a9')
25 _svntrunk='https://svn.rtmpd.com/crtmpserver/trunk'
26 _svnmod='crtmpserver'
28 build() {
29   cd "$srcdir"
30   
31   # svn crud
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)
36   else
37     svn co --non-interactive --no-auth-cache --username anonymous --password "" $_svntrunk --config-dir ./ -r $pkgver $_svnmod
38   fi
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"
45   fi
46   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
47   cd "$srcdir/$_svnmod-build"
49   for p in ../../commit-*; do patch -p1 < $p; done
51   # build
52   cd builders/cmake
53   cmake -DCRTMPSERVER_INSTALL_PREFIX=/usr
54   make
55   make DESTDIR="$pkgdir" install