# Template file for 'gn' pkgname=gn version=0.0.20200514 revision=1 _githash=07f614a8db14f4af27b90ecf97266466cddfc838 create_wrksrc=yes hostmakedepends="python3 ninja" short_desc="Meta-build system that generates build files for Ninja" maintainer="Leah Neukirchen " license="BSD-3-Clause" homepage="https://gn.googlesource.com/gn/" distfiles="https://gn.googlesource.com/gn/+archive/${_githash}.tar.gz" checksum=@9ff30a9f907ff9638dda45f0b70dfb72965fa0f409d50d5e621d6b64c4720398 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 }