[arch-commits] Commit in gn/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Apr 11 07:40:29 UTC 2020


    Date: Saturday, April 11, 2020 @ 07:40:29
  Author: foutrelis
Revision: 380002

archrelease: copy trunk to testing-x86_64

Added:
  gn/repos/testing-x86_64/
  gn/repos/testing-x86_64/PKGBUILD
    (from rev 380001, gn/trunk/PKGBUILD)
  gn/repos/testing-x86_64/chromium-gn-version.sh
    (from rev 380001, gn/trunk/chromium-gn-version.sh)

------------------------+
 PKGBUILD               |   43 +++++++++++++++++++++++++++++++++++++++++++
 chromium-gn-version.sh |    8 ++++++++
 2 files changed, 51 insertions(+)

Copied: gn/repos/testing-x86_64/PKGBUILD (from rev 380001, gn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-04-11 07:40:29 UTC (rev 380002)
@@ -0,0 +1,43 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=gn
+pkgver=0.1700.97cc440d
+_commit=97cc440d84f050f99ff0161f9414bfa2ffa38f65
+pkgrel=1
+pkgdesc="Meta-build system that generates build files for Ninja"
+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 $pkgname
+  echo 0.$(git rev-list --count initial-commit..).$(git rev-parse --short HEAD)
+}
+
+build() {
+  cd $pkgname
+  ./build/gen.py
+  ninja -C out
+}
+
+check() {
+  cd $pkgname
+  ./out/gn_unittests
+}
+
+package() {
+  cd $pkgname
+  install -D out/gn "$pkgdir/usr/bin/gn"
+  install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" docs/*
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+  mkdir -p "$pkgdir/usr/share/vim/vimfiles"
+  cp -r misc/vim/{autoload,ftdetect,ftplugin,syntax} \
+    "$pkgdir/usr/share/vim/vimfiles/"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: gn/repos/testing-x86_64/chromium-gn-version.sh (from rev 380001, gn/trunk/chromium-gn-version.sh)
===================================================================
--- testing-x86_64/chromium-gn-version.sh	                        (rev 0)
+++ testing-x86_64/chromium-gn-version.sh	2020-04-11 07:40:29 UTC (rev 380002)
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -eo pipefail
+
+chromium_version=${1:-$(curl -s https://omahaproxy.appspot.com/linux)}
+
+curl -s https://chromium.googlesource.com/chromium/src/+/$chromium_version/DEPS?format=TEXT |
+	base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"



More information about the arch-commits mailing list