42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Template file for 'yquake2'
|
|
pkgname=yquake2
|
|
version=8.20
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DSYSTEMWIDE_SUPPORT=ON"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel libjpeg-turbo-devel libopenal-devel zlib-devel
|
|
libcurl-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Enhanced client for id Software's Quake II (Yamagi Quake II)"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.yamagi.org/quake2/"
|
|
distfiles="https://deponie.yamagi.org/quake2/quake2-${version}.tar.xz"
|
|
checksum=d38a3fcd801d747901c3422672fceb8e2d603b3ae3b6bf3a69c879aad3761715
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv*) makedepends+=" MesaLib-devel";;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" libexecinfo-devel"
|
|
LDFLAGS="-lexecinfo";;
|
|
esac
|
|
|
|
do_install() {
|
|
vinstall build/release/quake2 755 usr/lib/${pkgname} ${pkgname}
|
|
vmkdir usr/bin
|
|
ln -sf /usr/lib/${pkgname}/${pkgname} ${DESTDIR}/usr/bin
|
|
vbin build/release/q2ded ${pkgname}-q2ded
|
|
vinstall build/release/ref_gl3.so 644 usr/lib/${pkgname}
|
|
vinstall build/release/ref_gl1.so 644 usr/lib/${pkgname}
|
|
vinstall build/release/baseq2/game.so 644 usr/lib/${pkgname}/baseq2
|
|
vinstall stuff/yq2.cfg 644 usr/share/doc/${pkgname}
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
vinstall stuff/icon/Quake2.png 644 usr/share/pixmaps ${pkgname}.png
|
|
# needed because the game currently won't start when the directory doesn't exist
|
|
vmkdir usr/share/games/quake2
|
|
touch ${DESTDIR}/usr/share/games/quake2/.emptydir
|
|
}
|