summaryrefslogtreecommitdiff
path: root/Ports/quake2/package.sh
blob: 8a62cc5aa98f5755d5260f856e5a72a8decf535c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env -S bash ../.port_include.sh
port='quake2'
version='0.1'
useconfigure='true'
commit_hash='d26d00845e95dc7d781459d0c1a7fd48ea4b6be3'
archive_hash='f940d71e0a4e15c040776979c6c99cb3520208744b3c22921f484d70ba82d675'
files="https://github.com/shamazmazum/quake2sdl/archive/${commit_hash}.tar.gz quake2.tar.gz ${archive_hash}"
auth_type='sha256'
workdir="quake2sdl-${commit_hash}"
makeopts=()
configopts=(
    "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
    "-DOPENGL_INCLUDE_DIR=${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
)
depends=('SDL2')
launcher_name='Quake II'
launcher_category='Games'
launcher_command='/usr/local/bin/quake2'

configure() {
    run cmake "${configopts[@]}"
}

install() {
    run make install
}