pkgname=gn pkgver=2024.06.05 _commit=b3a0bff47dd81073bfe67a402971bad92e4f2423 pkgrel=1 pkgdesc="GN is a meta-build system that generates build files for Ninja" arch=('x86_64') url="https://gn.googlesource.com/gn/+/master/README.md" license=('BSD') depends=('gcc-libs') makedepends=('clang' 'ninja' 'python3') source=("git+https://gn.googlesource.com/gn#commit=${_commit}") md5sums=('SKIP') build() { cd ${pkgname} python3 ./build/gen.py ninja -C out gn } package() { cd ${pkgname} install -D out/gn ${pkgdir}/usr/bin/gn install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }