ladybird/Ports/c-ray/package.sh
2023-09-09 01:06:31 +02:00

20 lines
583 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port=c-ray
version=8f30eb9904a4d20a78e9387d79dc049c5ed69b0c
useconfigure=true
files=(
"https://github.com/vkoskiv/c-ray/archive/${version}.tar.gz#27fa6496721faf69f18dc0946f0747b64f3ced748440a8f906f51fcb7e5cb008"
)
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
depends=("SDL2")
workdir="${port}-${version}"
configure() {
run cmake "${configopts[@]}"
}
install() {
mkdir -p "${SERENITY_INSTALL_ROOT}/home/anon/c-ray"
cp -r "${port}-${version}"/* "${SERENITY_INSTALL_ROOT}/home/anon/c-ray"
}