serenity/Ports/quake2/package.sh
2022-03-08 15:32:23 +01:00

24 lines
549 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=quake2
version=0.1
workdir=SerenityQuakeII-master
useconfigure=true
files="https://github.com/SerenityPorts/SerenityQuakeII/archive/master.tar.gz quake2.tar.gz"
makeopts=()
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DOPENGL_INCLUDE_DIR=${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
)
depends=("SDL2")
launcher_name=QuakeII
launcher_category=Games
launcher_command=quake2
configure() {
run cmake "${configopts[@]}"
}
install() {
run make install
}