1 # Maintainer: Tim Hatch <tim@timhatch.com>
2 # Contributor: Jason Giangrande <jgiangrande@clarku.edu>
7 pkgdesc="A native Python module written in C which provides USB access. (SVN Version)"
9 url="http://pyusb.berlios.de/"
11 depends=('python' 'libusb')
12 conflicts=('pyusb' 'pyusb10')
17 _svntrunk="https://pyusb.svn.sourceforge.net/svnroot/pyusb/"
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co https://pyusb.svn.sourceforge.net/svnroot/pyusb $_svnmod
30 cd ${srcdir}/${_svnmod}/trunk/
33 for file in `find ./ -name "*.py"`; do
34 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
35 sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
38 python2 setup.py install --root=${pkgdir} || return 1