[arch-commits] Commit in (gn-m76 gn-m76/repos gn-m76/trunk gn-m76/trunk/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Mar 2 08:53:40 UTC 2020


    Date: Monday, March 2, 2020 @ 08:53:39
  Author: foutrelis
Revision: 376482

Add older version of gn for building electron{4,5,6}

Using the commit specified in Chromium 76 DEPS, which is just before
commit 8730b0feb6 (Disallow non-buildable sources in binary targets).

Added:
  gn-m76/
  gn-m76/repos/
  gn-m76/trunk/
  gn-m76/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Added: gn-m76/trunk/PKGBUILD
===================================================================
--- gn-m76/trunk/PKGBUILD	                        (rev 0)
+++ gn-m76/trunk/PKGBUILD	2020-03-02 08:53:39 UTC (rev 376482)
@@ -0,0 +1,46 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=gn-m76
+pkgver=0.1576.81ee1967
+_commit=81ee1967d3fcbc829bac1c005c3da59739c88df9
+pkgrel=1
+pkgdesc="Meta-build system that generates build files for Ninja"
+pkgdesc+=" (version shipped in Chromium 76; for building electron{4,5,6})"
+arch=('x86_64')
+url="https://gn.googlesource.com/gn/"
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('clang' 'ninja' 'python' 'git')
+source=(git+https://gn.googlesource.com/gn#commit=$_commit)
+md5sums=('SKIP')
+
+pkgver() {
+  cd gn
+  echo 0.$(git rev-list --count initial-commit..).$(git rev-parse --short HEAD)
+}
+
+prepare() {
+  cd gn
+  # Make exec_process_unittest.cc work with Python 3
+  git cherry-pick -n a3e0807fdd7a1fde37d73add8c1581136f58c104
+}
+
+build() {
+  cd gn
+  ./build/gen.py
+  ninja -C out
+}
+
+check() {
+  cd gn
+  ./out/gn_unittests
+}
+
+package() {
+  cd gn
+  install -D out/gn "$pkgdir/usr/bin/gn-m76"
+  install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" docs/*
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list