ladybird/Ports/ninja/package.sh
Linus Groh 7cb9237be9 Ports: Remove/replace hardcoded i686-pc-serenity-{gcc,g++,ar,ranlib}
Except in the Lua port's Makefile patch, I couldn't figure this out...
2021-03-13 13:13:03 +01:00

18 lines
536 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=ninja
version=1.8.2
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz"
build() {
CXXFLAGS="--sysroot=${SERENITY_BUILD_DIR}/Root" \
LDFLAGS="--sysroot=${SERENITY_BUILD_DIR}/Root" \
# platform=linux is close enough.
run ./configure.py --bootstrap --platform=linux
run strip ninja
}
install() {
run mkdir -p "${SERENITY_BUILD_DIR}/Root/usr/local/bin"
run cp ninja "${SERENITY_BUILD_DIR}/Root/usr/local/bin/ninja"
}