From 798653843558685e17f4124f55e8b20e1a5c524b 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.20201019 --- srcpkgs/gn/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/gn/template diff --git a/srcpkgs/gn/template b/srcpkgs/gn/template new file mode 100644 index 00000000000..bbd8fe14f66 --- /dev/null +++ b/srcpkgs/gn/template @@ -0,0 +1,29 @@ +# Template file for 'gn' +pkgname=gn +version=0.0.20201019 +revision=1 +_githash=3281c6697cbb7d5488f5e650dfce60b1999bcfab +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=@4ef14b01ef9d1d7b7b9926206325ac679850a83721f543e6d115f617e01847b2 + +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 +}