updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / oscam-svn / PKGBUILD
blob97e49a72e84af71bc9d2fa312ee888393c892de5
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=oscam-svn
4 pkgver=5953
5 pkgrel=1
6 pkgdesc="An Open Source Conditional Access Module software"
7 arch=('i686' 'x86_64')
8 url="http://oscam.to/"
9 license=('unknown')
10 depends=('bash' 'openssl')
11 makedepends=('cmake' 'subversion')
12 provides=('oscam')
13 conflicts=('oscam')
14 options=(emptydirs)
15 install=oscam.install
16 source=(oscam.conf.d
17         oscam.rc.d)
18 md5sums=('79ad19c4e1a9ffbc105698914240e940'
19          '5fbce02bcb2c92aee56da31daf3c71eb')
21 _svntrunk=http://oscam.to/svn/oscam/trunk/
22 _svnmod=oscam
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   mkdir "$srcdir/$_svnmod-build"
38   cd "$srcdir/$_svnmod-build"
40   cmake -DCMAKE_INSTALL_PREFIX=/usr \
41         -DWEBIF=1 \
42         -DHAVE_DVBAPI=1 \
43         "$srcdir/$_svnmod"
44   make
47 package() {
48   cd "$srcdir/$_svnmod-build"
50   make DESTDIR="$pkgdir/" install
52   install -m 755 -d "$pkgdir/etc/oscam"
53   install -D -m 755 "$srcdir/oscam.rc.d" "$pkgdir/etc/rc.d/oscam"
54   install -D -m 644 "$srcdir/oscam.conf.d" "$pkgdir/etc/conf.d/oscam"