1 # Maintainer: Gunnar Kriik <gunnar.kriik@gmail.com>
7 pkgdesc="V8 is Google's open source JavaScript engine"
9 url="http://code.google.com/p/v8"
12 makedepends=('subversion' 'scons')
14 _svntrunk="http://v8.googlecode.com/svn/trunk"
18 cd ${srcdir} || return 1
21 if [ -d ${_svnmod}/.svn ]; then
22 (cd ${_svnmod} && svn up)
24 # svn co -r ${pkgver} ${_svntrunk} ${_svnmod}
25 svn co ${_svntrunk} ${_svnmod}
30 # This is needed for the SConstruct script to work
33 # Check which CPU architecture to build for
34 if [ "${CARCH}" = "i686" ]; then
36 elif [ "${CARCH}" = "x86_64" ]; then
40 # Build both release and debug libraries
41 scons mode=release library=shared arch=$SCONS_ARCH || return 1
42 scons mode=debug library=shared arch=$SCONS_ARCH || return 1
44 # Build the developer shell "d8" aswell
45 scons d8 arch=$SCONS_ARCH || return 1
47 # Create package directory structure
48 mkdir -p $pkgdir/usr/include
49 mkdir -p $pkgdir/usr/lib
50 mkdir -p $pkgdir/usr/bin
52 # Copy libraries (release + debug) and headers to the package folder
53 cp libv8.so $pkgdir/usr/lib
54 cp libv8_g.so $pkgdir/usr/lib
55 cp -R include/* $pkgdir/usr/include