Skip to content

Instantly share code, notes, and snippets.

@kuno
Created September 12, 2011 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuno/1210352 to your computer and use it in GitHub Desktop.
Save kuno/1210352 to your computer and use it in GitHub Desktop.
v8-current with version
pkgname=v8-current
pkgbasename=v8
pkgver=3.6.2
pkgrel=1
pkgdesc='A fast and modern javascript engine'
arch=('i686' 'x86_64')
url='http://code.google.com/p/v8'
license=('BSD')
makedepends=('subversion' 'scons')
build() {
_source="http://v8.googlecode.com/svn/tags/$pkgver"
svn checkout "$_source" "$srcdir/$pkgbasename-$pkgver"
cd "${srcdir}/${pkgbasename}-${pkgver}"
# https://github.com/joyent/node/issues/1377
patch -Np1 -i $srcdir/werror.patch
[ "$CARCH" = 'i686' ] && SCONS_ARCH=ia32
[ "$CARCH" = 'x86_64' ] && SCONS_ARCH=x64
scons mode=release library=shared arch=$SCONS_ARCH
scons d8 arch=$SCONS_ARCH snapshot=on
find include -type f \
-exec install -Dm644 {} $pkgdir/usr/{} \;
rm -rf $pkgdir/usr/include/.svn
install -Dm755 d8 "$pkgdir/usr/bin/d8"
install -Dm755 libv8.so "$pkgdir/usr/lib/libv8.so"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment