mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 00:20:21 +00:00
18 lines
613 B
Bash
Executable file
18 lines
613 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='ninja'
|
|
version='1.11.0'
|
|
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz 3c6ba2e66400fe3f1ae83deb4b235faf3137ec20bd5b08c29bfc368db143e4c6"
|
|
auth_type='sha256'
|
|
|
|
build() {
|
|
CXXFLAGS="--sysroot=${SERENITY_INSTALL_ROOT}" \
|
|
LDFLAGS="--sysroot=${SERENITY_INSTALL_ROOT}" \
|
|
# platform=linux is close enough.
|
|
run ./configure.py --bootstrap --platform='linux'
|
|
run strip ninja
|
|
}
|
|
|
|
install() {
|
|
run mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin"
|
|
run cp ninja "${SERENITY_INSTALL_ROOT}/usr/local/bin"
|
|
}
|