5 pkgdesc="A 100% pure java implementation of git"
7 url="http://www.jgit.org/"
9 depends=('java-runtime')
10 makedepends=('git' 'java-environment')
13 _gitroot="git://repo.or.cz/jgit.git"
17 msg "Connecting to GIT server...."
19 if [ -d "$_gitname" ] ; then
20 (cd "$_gitname" && git pull origin)
21 msg "The local files are updated."
23 git clone "$_gitroot" "$_gitname"
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$_gitname" "$_gitname-build" || return 1
31 cd "$srcdir/$_gitname-build"
34 sh make_jgit.sh || return 1
36 # include some files which are needed by eclipse
37 sed -i "s/^\(Bundle-Version:.*\)qualifier$/\1$(date +%Y%m%d%H%M)/" \
38 org.spearce.jgit/META-INF/MANIFEST.MF &&
39 jar ufm jgit.jar org.spearce.jgit/META-INF/MANIFEST.MF \
40 -C org.spearce.jgit plugin.properties || return 1
42 # update provides array
43 [ 1 ] && provides=('jgit='$(grep Bundle-Version \
44 org.spearce.jgit/META-INF/MANIFEST.MF | cut -f2 -d' '))
47 install -D -m755 jgit "$pkgdir/usr/bin/jgit" &&
48 install -D -m644 jgit.jar \
49 "$pkgdir/usr/share/java/${pkgname%-*}/org.spearce.jgit.jar" || return 1
52 # vim:set ts=2 sw=2 noet: