aboutsummaryrefslogtreecommitdiffstats
path: root/testing/v8/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/v8/APKBUILD')
-rw-r--r--testing/v8/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/v8/APKBUILD b/testing/v8/APKBUILD
new file mode 100644
index 0000000000..92394388a6
--- /dev/null
+++ b/testing/v8/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=v8
+pkgver=3.5.10.24
+pkgrel=0
+pkgdesc="V8 JavaScript/ECMAScript Engine"
+url="http://www.chromium.org/"
+arch="x86 x86_64 arm"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="scons"
+install=""
+subpackages="$pkgname-dev"
+source="http://gsdview.appspot.com/chromium-browser-official/v8-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/v8-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+
+ v8_arch=${CARCH}
+ test ${CARCH} = x86_64 && v8_arch=x64
+
+ msg "building for ${v8_arch}"
+
+ export LINKFLAGS="${LDFLAGS}"
+
+ scons -j$JOBS \
+ library=shared \
+ inspector=on \
+ objectprint=on \
+ console=readline \
+ soname=on \
+ arch=${v8_arch} \
+ || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ mkdir -p "$pkgdir"/usr/include
+ cp include/* "$pkgdir"/usr/include
+
+ mkdir -p "$pkgdir"/usr/lib
+ install -c -m755 libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8-${pkgver}.so
+ ln -sf libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8.so
+}
+
+md5sums="be8c1d88f8d120d68e8566685535ff9c v8-3.5.10.24.tar.bz2"