1 # Maintainer: Tasos Latsas <tlatsas2000 at gmail dot com>
6 pkgdesc="A python interface to Clamd (Clamav daemon)"
8 url="http://code.google.com/p/pyclamd/"
10 depends=('clamav' 'python2')
11 makedepends=('subversion')
12 source=('example-fix.patch')
13 md5sums=('108a46e2394e474bde25de3468ea5d84')
15 _svntrunk="http://pyclamd.googlecode.com/svn/trunk/"
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_svnmod-build"
31 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33 cd "$srcdir/$_svnmod-build"
35 patch -Np1 -i ${srcdir}/example-fix.patch
37 sed -i 's,#!/usr/bin/env python,&2,' "${srcdir}/${_svnmod-build}/__init__.py"
38 sed -i 's,#!/usr/bin/env python,&2,' "${srcdir}/${_svnmod-build}/example.py"
39 sed -i 's,#!/usr/bin/env python,&2,' "${srcdir}/${_svnmod-build}/pyclamd.py"
41 python2 setup.py build
45 cd "$srcdir/$_svnmod-build"
47 python2 setup.py install --prefix=/usr --root="$pkgdir"