2022-03-25 14:37:46 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=quake3
|
|
|
|
version=1.34
|
|
|
|
commit_hash=6d74896557d8c193a9f19bc6845a47e9d0f77db2
|
|
|
|
archive_hash=1db91cfd05170ed5b37c1ab56cdf7bbe6b3c86fc6baee8b68e8e539fddfd88c1
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-08-07 22:10:39 +03:00
|
|
|
"https://github.com/ioquake/ioq3/archive/$commit_hash.tar.gz $archive_hash"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2022-03-25 14:37:46 +03:00
|
|
|
workdir="ioq3-${commit_hash}"
|
|
|
|
depends=("SDL2")
|
2022-09-09 15:13:30 +03:00
|
|
|
launcher_name="Quake III Arena"
|
2022-03-25 14:37:46 +03:00
|
|
|
launcher_category="Games"
|
|
|
|
launcher_command=/usr/local/games/quake3/ioquake3
|
|
|
|
icon_file="misc/quake3.png"
|
|
|
|
|
2023-02-01 23:38:44 +03:00
|
|
|
install_dir='/usr/local/games/quake3'
|
|
|
|
|
2022-03-25 14:37:46 +03:00
|
|
|
install() {
|
2023-02-01 23:38:44 +03:00
|
|
|
run make COPYDIR=${SERENITY_INSTALL_ROOT}${install_dir}/ copyfiles
|
2022-03-25 14:37:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2023-02-01 23:38:44 +03:00
|
|
|
# Allow ioquake3 to use anonymous executable memory
|
|
|
|
bin_path="${install_dir}/ioquake3"
|
|
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/etc/fstab.d"
|
|
|
|
echo "${bin_path} ${bin_path} bind bind,nodev,nosuid,wxallowed" > "${SERENITY_INSTALL_ROOT}/etc/fstab.d/${port}"
|
|
|
|
|
|
|
|
# Let's create a more Serenity friendly `autoexec.cfg` file :^)
|
|
|
|
cat <<- 'EOF' > ${SERENITY_INSTALL_ROOT}${install_dir}/baseq3/autoexec.cfg
|
2022-03-25 14:37:46 +03:00
|
|
|
set cl_renderer "opengl1"
|
|
|
|
set r_fullscreen "0"
|
|
|
|
set cg_drawfps "1"
|
|
|
|
EOF
|
|
|
|
|
2023-02-01 23:38:44 +03:00
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo '==== Post installation instructions ===='
|
|
|
|
echo 'Please remember to install baseq3 from your Quake3 install'
|
|
|
|
echo "into ${install_dir}/"
|
2022-03-25 14:37:46 +03:00
|
|
|
}
|