1 # Maintainer: Colin Pitrat <colin.pitrat@gmail.com>
2 pkgname=kalenji-gps-watch-reader-svn
5 pkgdesc="A tool to import GPX files from a W 300 Kalenji or CW 700 Kalenji GPS watch."
7 url="http://code.google.com/p/kalenji-gps-watch-reader/"
9 makedepends=('subversion')
10 depends=('libusb' 'gcc-libs')
11 provides=('kalenji-gps-watch-reader')
14 _svntrunk=http://kalenji-gps-watch-reader.googlecode.com/svn/trunk/
15 _svnmod=kalenji-gps-watch-reader-svn
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up -r $pkgver)
23 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_svnmod-build"
30 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31 cd "$srcdir/$_svnmod-build"
34 install -D kalenji_reader $pkgdir/usr/bin/kalenji_reader