summaryrefslogtreecommitdiff
path: root/community/v8/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-17 15:59:35 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-17 15:59:35 -0300
commit6fed2edc6f9533e7894bbbacdbd1dbbb50076b01 (patch)
treefae0fe13e944d0265e921e57e355718c3ccd3f10 /community/v8/PKGBUILD
parent048b7287473507b76146e58378f4bfcfacf1060b (diff)
parent84837d89991e1e82e5aef8e297541c572ebf2efa (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: extra/libmcs/PKGBUILD extra/libmowgli/PKGBUILD kde-unstable/kdepim/PKGBUILD
Diffstat (limited to 'community/v8/PKGBUILD')
-rw-r--r--community/v8/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/v8/PKGBUILD b/community/v8/PKGBUILD
new file mode 100644
index 000000000..d5dac302f
--- /dev/null
+++ b/community/v8/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 45132 2011-04-17 01:54:09Z kchen $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: tocer <tocer.deng@gmail.com>
+
+pkgname=v8
+pkgver=3.2.10.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/$pkgname-$pkgver"
+
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ [ "$CARCH" = 'i686' ] && SCONS_ARCH=ia32
+ [ "$CARCH" = 'x86_64' ] && SCONS_ARCH=x64
+
+ scons mode=release library=shared arch=$SCONS_ARCH
+ scons d8 arch=$SCONS_ARCH
+
+ 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"
+}