1 # Contributor: andelf <andelf@gmail.com>
5 pkgdesc="Python extension module for libpcap. \
6 This is a svn version."
7 url="http://code.google.com/p/pypcap/"
10 depends=('python2' 'libpcap')
11 makedepends=('python2' 'libpcap' 'pyrex' 'subversion')
14 _svntrunk=http://pypcap.googlecode.com/svn/trunk
21 msg 'SVN checking out...'
22 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24 msg "SVN checkout done or server timeout"
25 msg "Config libpcap path..."
26 python2 setup.py config
27 msg "Running pyrexc on `pcap.pyx`..."
30 python2 setup.py build
31 python2 setup.py install --root=$startdir/pkg