1 # Author: Christian Kruse <cjk@wwwtech.de>
5 pkgdesc="Debug build of Google's C++ javascript engine"
6 url="http://code.google.com/p/v8/"
10 makedepends=('scons>=2.1' 'subversion>=1.4')
12 _svntrunk=http://v8.googlecode.com/svn/branches/3.7/
20 if [[ -d "$_svnmod/.svn" ]]; then
21 (cd "$_svnmod" && svn update)
23 svn co "$_svntrunk" "$_svnmod"
26 rm -rf "$srcdir/$_svnmod-build"
27 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
28 cd "$srcdir/$_svnmod-build"
30 [ "$CARCH" = 'i686' ] && SCONS_ARCH=ia32
31 [ "$CARCH" = 'x86_64' ] && SCONS_ARCH=x64
33 CFLAGS="" CXXFLAGS="" scons mode=debug library=shared arch=$SCONS_ARCH snapshot=on sample=shell
34 CFLAGS="" CXXFLAGS="" scons d8 arch=$SCONS_ARCH mode=debug
38 cd "$srcdir/$_svnmod-build"
39 find include -type f -exec install -Dm644 {} $pkgdir/usr/{} \;
40 rm -rf $pkgdir/usr/include/.svn
41 install -Dm755 d8_g "$pkgdir/usr/bin/d8_g"
42 install -Dm755 libv8_g.so "$pkgdir/usr/lib/libv8_g.so"