updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / ioke-git / PKGBUILD
blob87ff0fad012142cb8b14e2f42d4dad62bfab76f9
1 # $Id$
2 # Contributor: Will Chappell <mr.chapendi@gmail.com>
3 pkgname=ioke-git
4 pkgver=20100821
5 pkgrel=4
6 pkgdesc="Ioke is a dynamic prototype-based programming language targeted at the Java Virtual Machine."
7 arch=(i686 x86_64)
8 url="http://ioke.org"
9 license=('custom')
10 conflicts=(ioke)
11 depends=(java-runtime)
12 makedepends=(apache-ant git jdk ruby)
13 source=('ioke.sh')
14 md5sums=('212beaafccee04c044385d75b175b055')
15 _gitroot="git://github.com/olabini/ioke.git"
16 _gitname="ioke"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to the $pkgname git repository."
21   
22   if [ -d "$srcdir/$_gitname" ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   cd "$srcdir"
34   rm -rf $_gitname-build
35   git clone $_gitname $_gitname-build
36   cd $_gitname-build
38   ant || return 1  
40   mkdir -p $startdir/pkg/opt/ioke/
41   mv $startdir/src/${_gitname}-build/* $startdir/pkg/opt/ioke
42   install -D -m755 $startdir/src/ioke.sh $startdir/pkg/etc/profile.d/ioke.sh
44   rm $startdir/pkg/opt/ioke/bin/*.bat
45   rm $startdir/pkg/opt/ioke/bin/*.dll
46   rm $startdir/pkg/opt/ioke/bin/*.mdb
48   rm -f $startdir/pkg/opt/ioke/*.git
49   rm -f $startdir/pkg/opt/ioke/*.xml
50   rm -f $startdir/pkg/opt/ioke/*.rb
51   rm -f $startdir/pkg/opt/ioke/*.build
52   
53   rm -r $startdir/pkg/opt/ioke/bench
54   rm -r $startdir/pkg/opt/ioke/src
55   rm -r $startdir/pkg/opt/ioke/test