30 lines
556 B
Python
30 lines
556 B
Python
import os
|
|
|
|
from lib.make import *
|
|
|
|
version("1.13.2")
|
|
description("a small build system with a focus on speed")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.2.tar.gz")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("sed")
|
|
|
|
|
|
def build():
|
|
os.system("python3 ./configure.py --bootstrap")
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_ninja(composer):
|
|
composer.makedir("bin")
|
|
composer.addfile("ninja", "bin/ninja")
|
|
|
|
|
|
package("ninja")
|
|
on_pack(pack_ninja)
|
|
dep("semi-libc @same-arch")
|
|
dep("libcxx @same-arch")
|