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
|
2020-04-11 16:17:21 +00:00
|
|
|
pkgver=0.1700.97cc440d
|
|
|
|
_commit=97cc440d84f050f99ff0161f9414bfa2ffa38f65
|
2018-08-13 00:29:46 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Meta-build system that generates build files for Ninja"
|
|
|
|
arch=('x86_64')
|
2020-04-11 16:17:21 +00:00
|
|
|
url="https://gn.googlesource.com/gn/"
|
2018-08-13 00:29:46 +00:00
|
|
|
license=('BSD')
|
|
|
|
depends=('gcc-libs')
|
2019-03-26 03:04:50 +00:00
|
|
|
makedepends=('clang' 'ninja' 'python' 'git')
|
2018-08-13 00:29:46 +00:00
|
|
|
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
|
2019-03-26 03:04:50 +00:00
|
|
|
./build/gen.py
|
2020-02-04 04:33:26 +00:00
|
|
|
ninja -C out
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
./out/gn_unittests
|
2018-08-13 00:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
install -D out/gn "$pkgdir/usr/bin/gn"
|
2020-02-04 04:33:26 +00:00
|
|
|
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" docs/*
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
2020-04-11 16:17:21 +00:00
|
|
|
cp -r misc/vim/{autoload,ftdetect,ftplugin,syntax} \
|
2020-02-04 04:33:26 +00:00
|
|
|
"$pkgdir/usr/share/vim/vimfiles/"
|
2018-08-13 00:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|