updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / v8-debug / PKGBUILD
blob8ef70ab5c4d2b8af5314d9b4eeff8e2cdcf2d6ee
1 # Author: Christian Kruse <cjk@wwwtech.de>
2 pkgname=v8-debug
3 pkgrel=2
4 pkgver=10392
5 pkgdesc="Debug build of Google's C++ javascript engine"
6 url="http://code.google.com/p/v8/"
7 arch=('i686' 'x86_64')
8 license=('BSD')
9 depends=('')
10 makedepends=('scons>=2.1' 'subversion>=1.4')
12 _svntrunk=http://v8.googlecode.com/svn/branches/3.7/
13 _svnmod=v8
15 source=()
17 build() {
18   cd $srcdir
20   if [[ -d "$_svnmod/.svn" ]]; then
21     (cd "$_svnmod" && svn update)
22   else
23     svn co "$_svntrunk" "$_svnmod"
24   fi
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
37 package() {
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"