mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
794 B
Bash
33 lines
794 B
Bash
# Contributions from Arch:
|
|
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
|
pkgname=gn
|
|
pkgver=0.1490.df15af47
|
|
_commit=df15af47303ffafad009f865bc80679b453eef1b
|
|
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)
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
echo 0.$(git rev-list --count initial-commit..).$(git rev-parse --short HEAD)
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
python2 ./build/gen.py
|
|
ninja -C out gn
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
install -D out/gn "$pkgdir/usr/bin/gn"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|