mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/gn to 0.1634.ad9e442d-1
This commit is contained in:
parent
ea53100872
commit
aaad3dd1b8
2 changed files with 16 additions and 6 deletions
|
@ -6,8 +6,8 @@
|
|||
buildarch=28
|
||||
|
||||
pkgname=gn
|
||||
pkgver=0.1576.81ee1967
|
||||
_commit=81ee1967d3fcbc829bac1c005c3da59739c88df9
|
||||
pkgver=0.1634.ad9e442d
|
||||
_commit=ad9e442d92dcd9ee73a557428cfc336b55cbd533
|
||||
pkgrel=1
|
||||
pkgdesc="Meta-build system that generates build files for Ninja"
|
||||
arch=('x86_64')
|
||||
|
@ -33,13 +33,23 @@ prepare() {
|
|||
build() {
|
||||
cd $pkgname
|
||||
./build/gen.py
|
||||
ninja -C out gn
|
||||
ninja -C out
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname
|
||||
./out/gn_unittests
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
install -D out/gn "$pkgdir/usr/bin/gn"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
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 tools/gn/misc/vim/{autoload,ftdetect,ftplugin,syntax} \
|
||||
"$pkgdir/usr/share/vim/vimfiles/"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
4
extra/gn/chromium-gn-version.sh
Normal file → Executable file
4
extra/gn/chromium-gn-version.sh
Normal file → Executable file
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -eo pipefail
|
||||
|
||||
chromium_version=$(curl -s https://omahaproxy.appspot.com/linux)
|
||||
chromium_version=${1:-$(curl -s https://omahaproxy.appspot.com/linux)}
|
||||
|
||||
curl -s https://chromium.googlesource.com/chromium/src/+/refs/tags/$chromium_version/DEPS?format=TEXT |
|
||||
curl -s https://chromium.googlesource.com/chromium/src/+/$chromium_version/DEPS?format=TEXT |
|
||||
base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"
|
||||
|
|
Loading…
Reference in a new issue