updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / vmkit-svn / PKGBUILD
blobe77b097d795ecad5b635cf80936d40cf7ed3f7dc
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=vmkit-svn
4 pkgver=20110702
5 pkgrel=1
6 pkgdesc="A Java VM based on the LLVM virtual machine"
7 arch=('i686' 'x86_64')
8 license=('LLVM')
9 url="http://vmkit.llvm.org/index.html"
10 depends=('clang' 'classpath')
12 build() {
13 cd $srcdir
14 export CC=clang
15 export CXX=clang++
17 msg "checking out an LLVM source tree"
18 # Update the repo, else clone a new one
19         if [ -d llvm ]; then
20                 cd llvm
21                 svn up
22                 cd $srcdir
23         else
24                 svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
25                 cd $srcdir/llvm
26                 ./configure; make
27                 cd $srcdir
28         fi
30 msg "checking out VMKit"
31 # Update the repo, else clone a new one
32         if [ -d vmkit ]; then
33                 cd vmkit
34                 svn up
35                 cd $srcdir
36         else
37                 svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit
38         fi
40 msg "building VMKit"
41      cd $srcdir/vmkit
42       ./configure \
43       --with-llvmsrc=$srcdir/llvm \
44       --with-llvmobj=$srcdir/llvm \
45       --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip
46    
47       make
50 package() {
51     mkdir -p $pkgdir/usr/bin
52     mkdir -p $pkgdir/usr/share/licenses/vmkit
53     cd $srcdir/vmkit
54     make install exec_prefix=$pkgdir/usr datarootdir=$pkgdir/usr prefix=$pkgdir/usr
55     install -m644 $srcdir/vmkit/LICENSE.TXT $pkgdir/usr/share/licenses/vmkit/