1 # Contributor: mosra <mosra@centrum.cz>
6 pkgdesc="A fast-import based converter for an svn repo to git repos."
8 url="http://gitorious.org/svn2git"
11 depends=('subversion' 'qt' 'git')
12 optdepends=('svneverever-git: for collecting path entries across SVN history')
17 _gitroot="git://gitorious.org/svn2git/svn2git.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 qmake "INCLUDEPATH+=/usr/include/apr-1/"
41 install -m755 -D -s svn-all-fast-export "$pkgdir/usr/bin/svn2git"
42 install -m755 -d "$pkgdir/usr/share/svn2git/"
43 install -m644 -t "$pkgdir/usr/share/svn2git/" samples/*