mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 15:01:44 +01:00
33 lines
987 B
Plaintext
33 lines
987 B
Plaintext
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=gn
|
|
pkgver=0_git20201222
|
|
pkgrel=0
|
|
pkgdesc="Meta-build system that generates build files for Ninja"
|
|
arch="all !riscv64" # FTBFS: "please add support for your architecture"
|
|
url="https://gn.googlesource.com/gn"
|
|
license="BSD-3-Clause"
|
|
depends="samurai"
|
|
makedepends="python3"
|
|
# archive needs to include .git for the build script to be able to determine the version
|
|
source="https://dev.alpinelinux.org/archive/gn/gn-$pkgver.tar.gz
|
|
python3.patch
|
|
"
|
|
builddir="$srcdir"
|
|
|
|
build() {
|
|
./build/gen.py
|
|
ninja -C out
|
|
}
|
|
|
|
check() {
|
|
./out/gn_unittests
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 out/gn "$pkgdir"/usr/bin/gn
|
|
}
|
|
|
|
sha512sums="1c5a2526b8869c931994fd09cda0d84c82c0112b7fd171ef020acee76a848821cba6e298d91140a7155c82174737ba5bfd50438d79841cd1e95e216f33ea62ac gn-0_git20201222.tar.gz
|
|
3ee020c43b858f27a47e869634e071126e14c6a748b7fbfeec2b49651a0b1ea1f3bab1e0a20e4249056f7434221081945af9ad5ad28bb45300d1457580df06ab python3.patch"
|