void-packages/srcpkgs/yquake2/template

34 lines
1.3 KiB
Bash

# Template file for 'yquake2'
pkgname=yquake2
version=7.20
revision=1
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
wrksrc="quake2-${version}"
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="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://www.yamagi.org/quake2/"
distfiles="http://deponie.yamagi.org/quake2/quake2-${version}.tar.xz"
checksum=64136239ba08747ddfe7c18c17f87a9cd3730cd4a867b6e438eee9f34415a0ad
do_build() {
make ${makejobs} WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR=/usr/lib/${pkgname}
}
do_install() {
vmkdir usr/lib/${pkgname}
vcopy release/quake2 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
}