mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - add ARM headers back that were removed upstream
|
|
|
|
buildarch=28
|
|
|
|
pkgname=gn
|
|
pkgver=0.1819.e327ffdc
|
|
_commit=e327ffdc503815916db2543ec000226a8df45163
|
|
pkgrel=2
|
|
pkgdesc="Meta-build system that generates build files for Ninja"
|
|
arch=('x86_64')
|
|
url="https://gn.googlesource.com/gn/"
|
|
license=('BSD')
|
|
depends=('gcc-libs')
|
|
makedepends=('clang' 'ninja' 'python' '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
|
|
./build/gen.py
|
|
ninja -C out
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
./out/gn_unittests
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
install -D out/gn "$pkgdir/usr/bin/gn"
|
|
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"
|
|
cp -r misc/vim/{autoload,ftdetect,ftplugin,syntax} \
|
|
"$pkgdir/usr/share/vim/vimfiles/"
|
|
install -Dm644 -t "$pkgdir/usr/share/emacs/site-lisp" misc/emacs/gn-mode.el
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|