Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From b4ac57c946877f8a029c9ccd94b47ad9b1af8541 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Flemstr=C3=B6m?= <david.flemstrom@gmail.com>
Date: Fri, 31 Aug 2018 17:40:29 +0200
Subject: [PATCH 1/2] Make build work with yay
---
PKGBUILD | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 312d2d3..5785153 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -77,14 +77,20 @@ esac
OUTFLD=out.gn/Release
-prepare() {
+_use_python2() {
# Switching to python2 system environment
mkdir -p bin
ln -sf /usr/bin/python2 ./bin/python
ln -sf /usr/bin/python2-config ./bin/python-config
+ export PATH=${srcdir}/bin:"$PATH"
+
msg2 "Using: `which python`"
+}
+
+prepare() {
+ _use_python2
- export PATH=${srcdir}/bin:`pwd`/depot_tools:"$PATH"
+ export PATH=$PWD/depot_tools:"$PATH"
export GYP_GENERATORS=ninja
if [ ! -d "v8" ]; then
@@ -128,6 +134,8 @@ prepare() {
}
build() {
+ _use_python2
+
cd v8
# Fixes bug in generate_shim_headers.py that fails to create these dirs
@@ -140,8 +148,10 @@ build() {
}
check() {
+ _use_python2
+
cd v8
- msg2 "Using `which python`"
+
msg2 "Testing, this will also take a while..."
tools/run-tests.py --no-presubmit \
--outdir=out.gn \
--
2.18.0
From 7de091912da68f490c17d7c628df9c991c379453 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Flemstr=C3=B6m?= <david.flemstrom@gmail.com>
Date: Fri, 31 Aug 2018 17:42:22 +0200
Subject: [PATCH 2/2] Upgrade to 7.0.302
---
PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index 5785153..aee53d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
# Contributor: David Flemström <david.flemstrom@gmail.com>
pkgname=v8
-pkgver=6.8.275.3
+pkgver=7.0.302
pkgrel=1
pkgdesc="Fast and modern Javascript engine used in Google Chrome."
arch=('i686' 'x86_64')
--
2.18.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.