1 # Maintainer: Curtis McEnroe <programble@gmail.com>
5 pkgdesc="The Magpie programming language"
7 url="http://magpie-lang.org/"
9 depends=('git' 'java-environment')
10 makedepends=('git' 'apache-ant')
12 md5sums=('d6c0ec0c26f2cb2466dc6edbe7d26270')
14 _gitroot="git://github.com/munificent/magpie.git"
19 msg "Connecting to GIT server...."
21 if [[ -d "$_gitname" ]]; then
22 cd "$_gitname" && git pull origin
23 msg "The local files are updated."
25 git clone "$_gitroot" "$_gitname"
28 msg "GIT checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
40 ${pkgdir}/usr/bin/magpie
42 install -D -m644 ${srcdir}/${_gitname}-build/magpie.jar \
43 ${pkgdir}/usr/share/magpie/magpie.jar
45 cp -r ${srcdir}/${_gitname}-build/lib/ \
46 ${pkgdir}/usr/share/magpie/
49 # vim:set ts=2 sw=2 et: