updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ooc-git / PKGBUILD
blob24d8ce9f516b305e3458b98a9b33a148f14edd44
1 pkgname=ooc-git
2 pkgver=20091016
3 pkgrel=1
4 pkgdesc="an object-orientend programming language"
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="http://ooc-lang.org/"
8 depends=('jdk')
9 makedepends=('git' 'apache-ant')
10 source=()
11 md5sums=()
13 _gitroot="git://github.com/nddrylliog/ooc.git"
14 _gitname="ooc"
15 _ant="/usr/share/java/apache-ant/bin/ant"
17 build()
19         cd "$srcdir"
20         msg "Connecting to GIT server...."
22         if [ -d $_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 "Start build..."
32         rm -rf "$srcdir/$pkgname-$pkgver"
33         cp -r "$srcdir/$_gitname" "$srcdir/$pkgname-$pkgver"
34         cd "$srcdir/$pkgname-$pkgver"
36         $_ant
38         install -d $pkgdir/opt/ooc/ || return 1
39         install -D -m755 utils/ooc $pkgdir/usr/bin/ooc || return 1
40         cp -rp bin $pkgdir/opt/ooc || return 1
41         cp -rp libs $pkgdir/opt/ooc || return 1
42         cp -rp sdk $pkgdir/opt/ooc || return 1