From ddde82f57fa439d0973c7ca8280f8347169b4732 Mon Sep 17 00:00:00 2001 From: Toby Merz Date: Thu, 15 Oct 2020 12:06:53 +0200 Subject: [PATCH] New package: gn-0.0.20201022 --- srcpkgs/gn/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/gn/template diff --git a/srcpkgs/gn/template b/srcpkgs/gn/template new file mode 100644 index 00000000000000..ae54fb17f2c503 --- /dev/null +++ b/srcpkgs/gn/template @@ -0,0 +1,32 @@ +# Template file for 'gn' +pkgname=gn +version=0.0.20201022 +revision=1 +_githash=f5f465b52e5df6d4de9fbe67cc79f1914ba4dbfc +create_wrksrc=yes +hostmakedepends="python3 ninja" +short_desc="Meta-build system that generates build files for Ninja" +maintainer="shizonic " +license="BSD-3-Clause" +homepage="https://gn.googlesource.com/gn/" +distfiles="https://gn.googlesource.com/gn/+archive/${_githash}.tar.gz" +checksum=@3ef35abf6ff8530e55cd145c7f9498d6e08169d5fea9d9ce4ece29ff4b7fb14a + +post_extract() { + printf '#define LAST_COMMIT_POSITION "%s"\n' "$version" >src/gn/last_commit_position.h + printf '#define LAST_COMMIT_POSITION_NUM 0\n' >>src/gn/last_commit_position.h +} + +do_build() { + ./build/gen.py --no-last-commit-position + ninja -C out +} + +do_check() { + ./out/gn_unittests +} + +do_install() { + vbin out/gn + vlicense LICENSE +}