Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GN, google's metabuilder for Ninja. #2099

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions gn/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

pkgname=gn
pkgver=1822
pkgrel=1
pkgdesc="GN is a meta-build system that generates build files for Ninja."
arch=('i686' 'x86_64')
url='https://gn.googlesource.com/gn/+/refs/heads/master/README.md'
license=('BSD')
depends=('ninja')
makedepends=('python' 'ninja' 'git')
source=('gn::git+https://gn.googlesource.com/gn')
sha256sums=('SKIP')

prepare()
{
cd gn
git config advice.detachedHead false
git checkout 0649bd9
chmod 755 build/gen.py
python build/gen.py --platform=msys
}

build()
{
cd gn
ninja -C out
}

check()
{
cd gn
out/gn_unittests
}

package()
{
cd gn
install -d ${pkgdir}/usr/bin
install -Dm755 -s out/gn.exe ${pkgdir}/usr/bin
install -d ${pkgdir}/usr/share/licenses/gn
install -m644 LICENSE ${pkgdir}/usr/share/licenses/gn
}