updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / magpie-git / PKGBUILD
blob1694e31ae6e428bed8dc98f90c34888e4129e17e
1 # Maintainer: Curtis McEnroe <programble@gmail.com>
2 pkgname=magpie-git
3 pkgver=20111209
4 pkgrel=1
5 pkgdesc="The Magpie programming language"
6 arch=('any')
7 url="http://magpie-lang.org/"
8 license=('MIT')
9 depends=('git' 'java-environment')
10 makedepends=('git' 'apache-ant')
11 source=('magpie')
12 md5sums=('d6c0ec0c26f2cb2466dc6edbe7d26270')
14 _gitroot="git://github.com/munificent/magpie.git"
15 _gitname="magpie-src"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
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"
35   ant jar
38 package() {
39   install -D magpie \
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: