40 lines
1.4 KiB
Bash
40 lines
1.4 KiB
Bash
# Template file for 'yquake2'
|
|
pkgname=yquake2
|
|
version=7.21
|
|
revision=1
|
|
wrksrc="quake2-${version}"
|
|
build_style=gnu-makefile
|
|
make_build_args="WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR=/usr/lib/${pkgname}"
|
|
make_use_env=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel libjpeg-turbo-devel libopenal-devel zlib-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="An 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=3e7c428bb2aacbc3ada9950b9e14fc599d0a054f9eedcdac55a4bff4efef5ea5
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv*) makedepends+=" MesaLib-devel";;
|
|
esac
|
|
|
|
pre_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv*|aarch*) sed -i -r 's/\$.+arm.+/arm/' Makefile;;
|
|
esac
|
|
}
|
|
|
|
do_install() {
|
|
vinstall release/quake2 755 usr/lib/${pkgname} ${pkgname}
|
|
vmkdir usr/bin
|
|
ln -sf /usr/lib/${pkgname}/${pkgname} ${DESTDIR}/usr/bin
|
|
vbin release/q2ded ${pkgname}-q2ded
|
|
vinstall release/ref_gl3.so 644 usr/lib/${pkgname}
|
|
vinstall release/ref_gl1.so 644 usr/lib/${pkgname}
|
|
vinstall 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
|
|
}
|