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

Evangelos Foutras foutrelis at archlinux.org
Wed May 13 06:14:04 UTC 2020


    Date: Wednesday, May 13, 2020 @ 06:14:03
  Author: foutrelis
Revision: 383325

archrelease: copy trunk to testing-x86_64

Added:
  gn/repos/testing-x86_64/
  gn/repos/testing-x86_64/PKGBUILD
    (from rev 383324, gn/trunk/PKGBUILD)
  gn/repos/testing-x86_64/chromium-gn-version.sh
    (from rev 383324, 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 383324, gn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-05-13 06:14:03 UTC (rev 383325)
@@ -0,0 +1,43 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=gn
+pkgver=0.1731.5ed3c9cc
+_commit=5ed3c9cc67b090d5e311e4bd2aba072173e82db9
+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 383324, gn/trunk/chromium-gn-version.sh)
===================================================================
--- testing-x86_64/chromium-gn-version.sh	                        (rev 0)
+++ testing-x86_64/chromium-gn-version.sh	2020-05-13 06:14:03 UTC (rev 383325)
@@ -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