serenity/Ports/mold/package.sh

27 lines
598 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env -S bash ../.port_include.sh
2024-10-26 22:04:34 -04:00
port='mold'
version='2.34.1'
2023-07-10 07:10:29 -04:00
files=(
2024-10-26 22:04:34 -04:00
"https://github.com/rui314/mold/archive/refs/tags/v${version}.tar.gz#a8cf638045b4a4b2697d0bcc77fd96eae93d54d57ad3021bf03b0333a727a59d"
2023-07-10 07:10:29 -04:00
)
depends=("zlib" "openssl" "zstd")
useconfigure='true'
configopts=(
"-B build"
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DMOLD_USE_MIMALLOC=OFF"
"-DBUILD_TESTING=OFF"
)
configure() {
run cmake "${configopts[@]}"
}
build() {
run make -C build "${makeopts[@]}"
}
install() {
run make -C build install "${installopts[@]}"
}