1 # Contributor: Tomasz Kontusz <roverorna@gmail.com>
6 pkgdesc="SASC-NG is SoftCAM creating virtual DVB interface"
7 url="https://opensvn.csie.org/traccgi/sascng/"
10 depends=('kernel-headers')
11 makedepends=('subversion')
15 source=('sasc-ng-linux-2.6.28.patch' 'sasc-ng-parentness.patch' 'sasc-ng.install' 'sasc-ng.rc' 'sasc-ng.conf')
18 install='sasc-ng.install'
20 _svntrunk=http://OpenSVN.csie.org/sascng
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 cp -r $_svnmod/trunk $_svnmod-build
38 patch -p2 < ${srcdir}/sasc-ng-linux-2.6.28.patch
39 patch -p2 < ${srcdir}/sasc-ng-parentness.patch
42 make module || return 1
45 mkdir -p $startdir/pkg/usr/sbin
46 mkdir -p $startdir/pkg/lib/modules/`uname -r`/extra
47 mkdir -p $startdir/pkg/etc/{rc.d,conf.d}
48 install -m0755 sasc-ng $startdir/pkg/usr/sbin/
49 install -m0644 dvbloopback.ko $startdir/pkg/lib/modules/`uname -r`/extra
50 install -m0755 ${srcdir}/sasc-ng.rc $startdir/pkg/etc/rc.d/sasc-ng
51 install -m0644 ${srcdir}/sasc-ng.conf $startdir/pkg/etc/conf.d/sasc-ng
53 rm -rf ${srcdir}/$_svnmod-build