[arch-commits] Commit in v8/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Thu Oct 16 20:55:09 UTC 2014


    Date: Thursday, October 16, 2014 @ 22:55:09
  Author: anatolik
Revision: 120838

upgpkg: v8 3.28.71.15-1

Bump to the new version
Use ninja to build binaries
Rebuild for the new ICU

Modified:
  v8/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-10-16 19:32:18 UTC (rev 120837)
+++ PKGBUILD	2014-10-16 20:55:09 UTC (rev 120838)
@@ -6,7 +6,7 @@
 
 pkgname=v8
 # use http://omahaproxy.appspot.com/ to find stable v8 version
-pkgver=3.26.31.15
+pkgver=3.28.71.15
 pkgrel=1
 pkgdesc='Fast and modern Javascript engine'
 arch=(i686 x86_64)
@@ -13,23 +13,21 @@
 url='http://code.google.com/p/v8'
 license=(BSD)
 depends=(readline icu)
-makedepends=(subversion python2)
+makedepends=(python2 ninja)
 # unfortunately https://github.com/$pkgname/$pkgname does not contain all tags
 source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver-lite.tar.bz2
         v8.pc)
-sha256sums=('9d1fdcf0fa15c68056193a3f0e7286761fe4ffdb6a78dc5d16fa61c3097f3e63'
+sha256sums=('fc9ab260e8560d507cf24bfe10f81f4097f29b8d8981e3ba517777a195b9d6d0'
             '2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d')
 
-[[ "$CARCH" = 'i686' ]]   && ARCH=ia32
-[[ "$CARCH" = 'x86_64' ]] && ARCH=x64
+case "$CARCH" in
+  x86_64) V8_ARCH='x64' ;;
+  i686) V8_ARCH='ia32' ;;
+esac
 
 prepare() {
   cd v8-$pkgver
 
-  # we do not need icu sources, just one icu.gyp
-#  sed -e 's|\bthird_party/icu --revision |--depth=files third_party/icu --revision |' -i Makefile
-#  make dependencies
-
   find build/ test/ tools/ src/ -type f -exec \
     sed -e 's_^#!/usr/bin/env python$_&2_' \
         -e 's_^#!/usr/bin/python$_&2_' \
@@ -43,10 +41,9 @@
 build() {
   cd v8-$pkgver
 
-  build/gyp_v8 -Dv8_enable_i18n_support=1 -Duse_system_icu=1 -Dconsole=readline -Dcomponent=shared_library -Dv8_target_arch=$ARCH -Dwerror= --generator-output=out -f make
+  build/gyp_v8 -Dv8_enable_i18n_support=1 -Duse_system_icu=1 -Dconsole=readline -Dcomponent=shared_library -Dv8_target_arch=$V8_ARCH -Dwerror= -f ninja
 
-  make -C out builddir=`pwd`/out/Release BUILDTYPE=Release mksnapshot.$ARCH
-  make -C out builddir=`pwd`/out/Release BUILDTYPE=Release
+  ninja -C out/Release v8 d8 # or target 'all' if you need tests
 }
 
 check() {
@@ -59,7 +56,7 @@
   cd v8-$pkgver
 
   install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8
-  install -Dm755 out/Release/lib.target/libv8.so "$pkgdir"/usr/lib/libv8.so
+  install -Dm755 out/Release/lib/libv8.so "$pkgdir"/usr/lib/libv8.so
 
   # V8 has several header files and ideally if it had its own folder in /usr/include
   # But doing it here will break all users. Ideally if they use provided pkgconfig file.



More information about the arch-commits mailing list