1 # Contributor: Yarrema aka Knedlyk <yupadmin@gmail.com>
3 pkgname=${_pkgname}-svn
6 pkgdesc="A general USB device sharing system over IP network"
8 url="http://usbip.sourceforge.net/"
10 depends=('sysfsutils' 'tcp_wrappers' 'glib2')
15 _svntrunk="https://usbip.svn.sourceforge.net/svnroot/usbip"
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
32 cd ${srcdir}/${_svnmod}-build/linux/trunk/src
34 ./autogen.sh || return 1
35 ./configure --prefix=/usr
37 make DESTDIR="$pkgdir" install || return 1