2018-08-13 00:29:46 +00:00
|
|
|
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - add ARM headers back that were removed upstream
|
|
|
|
|
|
|
|
buildarch=28
|
|
|
|
|
|
|
|
pkgname=gn
|
2018-12-11 13:35:57 +00:00
|
|
|
pkgver=0.1497.13ac6ca4
|
|
|
|
_commit=13ac6ca4d5cd9e127096a2073743d2d12ce8a70e
|
2018-08-13 00:29:46 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="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' 'python2' 'git')
|
|
|
|
source=(git+https://gn.googlesource.com/gn#commit=$_commit
|
|
|
|
0001-Add-ARM-headers-back.patch)
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'9948af7a864a8e57697c49d15cdcb395')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
echo 0.$(git rev-list --count initial-commit..).$(git rev-parse --short HEAD)
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
patch -p1 -i ../0001-Add-ARM-headers-back.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2018-11-13 01:00:56 +00:00
|
|
|
python2 ./build/gen.py
|
2018-08-13 00:29:46 +00:00
|
|
|
ninja -C out gn
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
install -D out/gn "$pkgdir/usr/bin/gn"
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|