Skip to content

Instantly share code, notes, and snippets.

@anatol
Created April 3, 2015 17:26
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 anatol/41c7fb3158cb4207d6e5 to your computer and use it in GitHub Desktop.
Save anatol/41c7fb3158cb4207d6e5 to your computer and use it in GitHub Desktop.
Index: PKGBUILD
===================================================================
--- PKGBUILD (revision 130577)
+++ PKGBUILD (working copy)
@@ -6,7 +6,7 @@
pkgname=v8
# use http://omahaproxy.appspot.com/ to find stable v8 version
-pkgver=3.30.33.16
+pkgver=4.2.77.14
pkgrel=1
pkgdesc='Fast and modern Javascript engine'
arch=(i686 x86_64)
@@ -13,11 +13,12 @@
url='http://code.google.com/p/v8'
license=(BSD)
depends=(readline icu)
-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
+makedepends=(python2 ninja git)
+source=(v8-$pkgver.zip::https://github.com/v8/v8-git-mirror/archive/$pkgver.zip
+ git+https://chromium.googlesource.com/external/gyp
v8.pc)
-sha256sums=('a9eed0d858abe1999c1d4500039afd16feb5f8ee6ca1820eb467efafdccf2cf6'
+sha256sums=('7ae3f477c4d502b54ecc21c2c03c50585dfdf26e58d9b2c0430a3cbb937f1732'
+ 'SKIP'
'2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d')
case "$CARCH" in
@@ -26,7 +27,7 @@
esac
prepare() {
- cd v8-$pkgver
+ cd v8-git-mirror-$pkgver
find build/ test/ tools/ src/ -type f -exec \
sed -e 's_^#!/usr/bin/env python$_&2_' \
@@ -33,6 +34,7 @@
-e 's_^#!/usr/bin/python$_&2_' \
-e "s_'python'_'python2'_" -i {} \;
+ ln -sf $srcdir/gyp build/
sed 's/\bpython\b/python2/' -i Makefile build/gyp/gyp
sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8.pc"
@@ -39,7 +41,7 @@
}
build() {
- cd v8-$pkgver
+ cd v8-git-mirror-$pkgver
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
@@ -56,7 +58,7 @@
}
package() {
- cd v8-$pkgver
+ cd v8-git-mirror-$pkgver
install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8
install -Dm755 out/Release/lib/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